grrr scripts are confusing
this is the only part of the script that has anyhting to do with the sprite i made it attached to the bench as a selling things script but it keeps changing to the wines and potions rack can anyone tell me why
int &donk = sp_editor_num(¤t_sprite);
editor_type(&donk, 0);
int &myflag = editor_seq(&donk, -1);
//create trader
int &bx = sp_x(¤t_sprite, -1);
int &by = sp_y(¤t_sprite, -1);
&by -= 40;
&aaaa = &trader;
int &amount = 1;
int &myrand;
sp_brain(&trader, 0);
sp_base_walk(&trader, 380);
sp_speed(&trader, 3);
int &donk = sp_editor_num(¤t_sprite);
editor_type(&donk, 0);
int &myflag = editor_seq(&donk, -1);
//create trader
int &bx = sp_x(¤t_sprite, -1);
int &by = sp_y(¤t_sprite, -1);
&by -= 40;
&aaaa = &trader;
int &amount = 1;
int &myrand;
sp_brain(&trader, 0);
sp_base_walk(&trader, 380);
sp_speed(&trader, 3);
i know im supposed to tone down the posting but ive been working on thsi for over 3 days now and its not working right still
(sorry guys)
(sorry guys)
Something I used was a key script. (eg; Key-72.c will run whenever 'I' is pressed)
The script was something like;
void main()
{
say_stop("story is &story",1);
say_stop("donk is &donk",1);
...
}
that way I could 'ask' what the variables were before and after a script ran to help figure out why things don't work.
Also have you used alt/D for debug mode? ( it writes a log that tells much.)
But changing to another sprite is something else. Are you using Windinkedit?
The script was something like;
void main()
{
say_stop("story is &story",1);
say_stop("donk is &donk",1);
...
}
that way I could 'ask' what the variables were before and after a script ran to help figure out why things don't work.
Also have you used alt/D for debug mode? ( it writes a log that tells much.)
But changing to another sprite is something else. Are you using Windinkedit?