The Dink Network

Reply to Re: Story scripts suck

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:
 
 
August 20th 2005, 12:27 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
I was too lazy to read your script, but I'll tell ya wat vision is.
Sometimes, you need to add some objects, but they should appear only later in the game, or only at the begining. For example, you put an NPC, that should dissapear after you talk to him. First, you edit the screen, without the NPC, then you change the vision to 1 and put the NPC. Create the screen script, and put there somrthing like this:
void main(void)
{
If (&talk_npc == 0)//you didn't talk with the NPC
{
&vision = 1;
}
}

In the NPC script, make sure to add the following line in the talk procedure:
&talk_npc = 1;
Of course, this was a simple examle.
You can use the vision to make the screen look different in different stuations.
Just leave the blank screen on vision 0, and edit the screen in vision 1, vision 2...and so on.
Just remember that the sprites you see in vision 0, you see in all the vision.