The Dink Network

Reply to Re: 2 NPC conversation

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
May 4th 2007, 08:38 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
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",&current_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...