Reply to Re: 2 NPC conversation
If you don't have an account, just leave the password field blank.
This method costs you two globals, if you want to save two use this script and attach it to the guard you're speaking (guard1) to: (and remove the other guard(guard2) from the map)
void main(void)
{
int &guard2 = create_sprite(x,y,brain,seq,frame);
sp_script(&guard2,"guard2");
}
void talk(void)
{
say("BlaBla",1);
say("`7I agree",¤t_sprite);
say("`8So do I",&guard2);
}
Put the talk and hit information for the second guard in the guard2.c script.
I used this trick numerous times in the scourger, in my current work I choose to use two globals but continuously re-use them which is a good choice too...
void main(void)
{
int &guard2 = create_sprite(x,y,brain,seq,frame);
sp_script(&guard2,"guard2");
}
void talk(void)
{
say("BlaBla",1);
say("`7I agree",¤t_sprite);
say("`8So do I",&guard2);
}
Put the talk and hit information for the second guard in the guard2.c script.
I used this trick numerous times in the scourger, in my current work I choose to use two globals but continuously re-use them which is a good choice too...
