again with legacy!

okay on fraggle sripting

i wanted to hit 3 swicths but every time
you hit a switch it should say "2 more to go"
hit another and say "1 more to go" then another and say "sequence
complete" then the door opens! just like quake
1 and 2.

Share this post


Link to post

[level info]
music = your music
levelname = your level name
creator = you

[scripts]

include("things.h");


//global variables
int switchhit = 0;


script 1
{
switchhit++;
if (switchhit == 1)
{
tip(" 2 more to go ");
}
elseif (switchhit == 2)
{
tip(" 1 more to go");
}
elseif (switchhit == 3)
{
tip(" sequence complete");
"enter your actions here"
}
}


be sure to give this script to all 3 switches.

Share this post


Link to post

not that much of a difference.

be more like

int switch = 0;
script 1 (void)
{
switch++;
if(switch == 1)
{
print(s:"2 more to go");
}
elseif(switch == 2)
{
print(s:"1 more to go");
}
elseif(switch == 3)
{
print(s:"completed");
delay(2*35); //wait for 2 seconds. 35 = 1 second
door_open(blah,blah,blah);
}
}

...

Share this post


Link to post

heh, it sure is. Untill you start messing with it everyday...

Share this post


Link to post
This topic is now closed to further replies.