Real npc script not working.
#1
Posted 18 May 2008 - 04:24 AM
This dosen't seem to be working for me. I Just need someone to explain how to set up the arguments better then he dose. Also when i use the script with only the string, it keeps playing the string over and over.
Thanks for any help
#2
Posted 18 May 2008 - 04:38 AM
#3
Posted 18 May 2008 - 05:13 AM
#4
Posted 18 May 2008 - 05:34 AM
I remember this problem.
Would you be alright having 'L' to be 'talk to people' instead of A?
#5
Posted 18 May 2008 - 05:44 AM
#6
Posted 18 May 2008 - 05:58 AM
void run(int m, int s, int f, int def_dir, int d){
int d_x; int d_y;
int a_x; int a_y;
int orig_d = this->Data;
if(d == 0) d = 48;
while(true){
d_x = this->X - Link->X; a_x = Abs(d_x);
d_y = this->Y - Link->Y; a_y = Abs(d_y);
if(f != 0){
if(a_x < d && a_y < d){
if(a_x <= a_y){
if(d_y >= 0) this->Data = orig_d;
else this->Data = orig_d+1;
}else{
if(d_x >= 0) this->Data = orig_d+2;
else this->Data = orig_d+3;
}
}else{this->Data = orig_d + def_dir;}
}
if(Link->InputL && a_x < 24 && a_y < 24 && Link->Z == 0){
if(s != 0) Game->PlaySound(s);
Link->InputL = false;
Screen->Message(m);
}
Waitframe();
}
}
}
That one will work, and will use 'L' to make them talk.
If you want them to turn, set 'D2' to a number that's not 0.
#7
Posted 18 May 2008 - 06:12 AM
And BTW joe123 do you know where i can find a Roll script? Like Rolling in FSA.
#8
Posted 18 May 2008 - 06:15 AM
Have you set up the combos for the NPC so that they go:
Up,Down,Left,Right
on the combopage?
#9
Posted 18 May 2008 - 06:28 AM
#10
Posted 18 May 2008 - 06:28 AM
#11
Posted 18 May 2008 - 06:41 AM
Where can i get link rolling sprites for DOR?
Sorry if i'm getting annoying
Yay no longer a newbie.
Edited by Son, 18 May 2008 - 06:42 AM.
#12
Posted 18 May 2008 - 07:11 AM
That's distance in pixels (not combos) away from the ffc that Link should be before it starts turning.
If you leave it as 0, it's set to 48 (so 3 combos) by defualt.
That should work.
Don't worry about getting annoying, if I thought it was annoying I wouldn't be responding =P
Sadly I don't have anything better to do than sit around here and poke people's scripts.
Not for another 50 minutes anyway =P
Why aren't you a newbie
Not that you're really nOObish or anything, but why has it changed now? =P
#13
Posted 18 May 2008 - 07:23 AM
I set those tiles to the charge sprites right?
I'm not a newbie anymore because i ranked up
#14
Posted 18 May 2008 - 07:24 AM
(If you look in Quest Editor Help, setting the Gravity could've caused some side-effects.)
Edited by AgentLym, 18 May 2008 - 07:26 AM.
#15
Posted 18 May 2008 - 07:40 AM
i got the rolling working but it looks like hes jsut headbutting
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users