The Dink Network

Reply to Re: Need Some Help for my First DMOD

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:
 
 
July 10th 2004, 09:58 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Use visions. Create a global variable that stores the state of the barrier (like: 1 = barrier moved and 0 = barrier not moved). Then, you should create two visions at that screen - one with the barrier there and one with the barrier moved. Then, attach a script to the screen (B in DinkEdit) and in that script, write something like:

void main(void)
{
if (&barrier_state == 0)
{
&vision = 1;
//in case vision 1 = barrier in place
}
if (&barrier_state == 1)
{
&vision = 2;
//in case vision 2 = barrier moved
}
//or whatever your variable for barrier state is
}

Sell script: look at s4-st3p.c in source.zip.