I need help learning to script as the wiki explains it too complicated and mentors give me examples and critiques. Please comment whether or not you guys are interested!!
E.k" CM Bolivar
Printable View
I need help learning to script as the wiki explains it too complicated and mentors give me examples and critiques. Please comment whether or not you guys are interested!!
E.k" CM Bolivar
I can teach you how to script in this thread. So tell me what you know first of all to begin with so I can have a good understanding of where you are.
You need to tell us what you do understand and what you don't understand. Else we can't help you.
Well all I know is NPC(character) scripts. Head, boy, sleevecolor etc.
If you haven't understood anything from the tutorial I made, let me know so I can explain more deeply.
Well, first can you please tell me how to make a chair (my own graphic) so that the player sits?
I tried:
// NPC made by Stefan Knorr
if (created) {
}
if (playertouchsme) {
dontblock;
drawunderplayer;
triggeraction 50,29,sit.gani,;
}
And:
// NPC made by Stefan Knorr
if (created) {
}
if (playertouchsme) {
dontblock;
drawunderplayer;
setani sit,;
}
You're scripting using Gs1, please use Gs2 instead.
For the script:
This will only work in a server.PHP Code:
//#CLIENTSIDE
function onCreated() {
dontblock();
setshape2(2, 2, {22, 22, 22, 22});
}
It doesn't work ini my offline editor :c