The Dink Network

grrr scripts are confusing

March 7th 2005, 06:31 PM
death.gif
sirakn
Peasant He/Him
 
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(&current_sprite);
editor_type(&donk, 0);
int &myflag = editor_seq(&donk, -1);
//create trader
int &bx = sp_x(&current_sprite, -1);
int &by = sp_y(&current_sprite, -1);
&by -= 40;
&aaaa = &trader;
int &amount = 1;
int &myrand;
sp_brain(&trader, 0);
sp_base_walk(&trader, 380);
sp_speed(&trader, 3);

March 7th 2005, 06:32 PM
death.gif
sirakn
Peasant He/Him
 
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)
March 7th 2005, 10:21 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
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?
March 8th 2005, 12:12 PM
goblins.gif
igloo15
Peasant He/Him
 
why do you need a basewalk if it is a bench?
March 8th 2005, 05:00 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
He gives the trader the basewalk, not the bench.