Cyberdemon
User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > again with legacy!
 
Author
All times are GMT. The time now is 10:47. Post New Thread    Post A Reply
mustafa saed
I seriously stink


Posts: 170
Registered: 04-02


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.

__________________
Doomworld= preschool

Old Post Jun 30 2002 22:49 #
mustafa saed is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Kaiser
Doom64 Guru


Posts: 2901
Registered: 08-00


[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.

__________________
http://doom64ex.sourceforge.net/
http://doom64ex.wordpress.com/

Old Post Jul 1 2002 20:57 #
Kaiser is offline Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Doom II Guy
Member


Posts: 617
Registered: 04-02


How much different would it be if I wanted to do that with ZDooM?

Old Post Jul 1 2002 23:32 #
Doom II Guy is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Kaiser
Doom64 Guru


Posts: 2901
Registered: 08-00


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);
}
}

...

__________________
http://doom64ex.sourceforge.net/
http://doom64ex.wordpress.com/

Old Post Jul 2 2002 02:11 #
Kaiser is offline Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Doom II Guy
Member


Posts: 617
Registered: 04-02


Thanks. Scripting = hard as hell

Old Post Jul 2 2002 03:28 #
Doom II Guy is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Kaiser
Doom64 Guru


Posts: 2901
Registered: 08-00


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

__________________
http://doom64ex.sourceforge.net/
http://doom64ex.wordpress.com/

Old Post Jul 2 2002 05:16 #
Kaiser is offline Github || Blog || PM || Post History || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 10:47. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > again with legacy!

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.