Reply to Re: Need Some Help for my First DMOD
If you don't have an account, just leave the password field blank.
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.
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.