mustafa saed Posted June 30, 2002 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. 0 Share this post Link to post
Kaiser Posted July 1, 2002 [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. 0 Share this post Link to post
Doom II Guy Posted July 1, 2002 How much different would it be if I wanted to do that with ZDooM? 0 Share this post Link to post
Kaiser Posted July 2, 2002 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); } } ... 0 Share this post Link to post
Kaiser Posted July 2, 2002 heh, it sure is. Untill you start messing with it everyday... 0 Share this post Link to post