Newbie Spellweaver
- Joined
- Jun 24, 2008
- Messages
- 78
- Reaction score
- 51
Re: Big NPC Scripting tutorial
New update. Some style added.
New update. Some style added.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
Well, good effort.
It's evident that there are still some architectural technicalities that you don't completely understand due to the way you've explained certain things, but with that being said, well done.
Wow ... i must say that this tutorial ....you put it a lot of effort into making this ! i haven't read it yet but I think its good ! i will read it when I have time =] and Also ... it would also be nice if you could make this into a file ? and let us download it .. just like BazzCreative said =] i would definitely read this ! I'm a newb in scripting lol .. i have a server but I dont know anything about coding lol.. though i wanna learn it.
i was just wondering how i can use the text from cm.sendGetText that the user inputed??
function start() {
cm.sendGetText("What's my name?");
}
function action(m,t,s) {
if (m > 0) {
var answer = cm.getText();
if (answer == "shawn") { // I think this is how you do it -_-
cm.sendOk("Yay");
}else{
cm.sendOk("Boo");
}
cm.dispose();
}
cm.dispose();
}
I think I did mentoin that in the guide but very well. Devon told you how to do.i was just wondering how i can use the text from cm.sendGetText that the user inputed??
Thanks for helping me answer questions when I'm not onPHP:function start() { cm.sendGetText("What's my name?"); } function action(m,t,s) { if (m > 0) { var answer = cm.getText(); if (answer == "shawn") { // I think this is how you do it -_- cm.sendOk("Yay"); }else{ cm.sendOk("Boo"); } cm.dispose(); } cm.dispose(); }
How do i spawn a mob?