Severed bunny head
Register | 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 > Executing script only if player has a key.
 
Author
All times are GMT. The time now is 15:27. Post New Thread    Post A Reply
TomoAlien
Junior Member


Posts: 110
Registered: 06-08


I want to make a swich that lowers the lift with sector tag 2 only when player has a red skullkey. I don't know how to do it. Your help is appreciated.

EDIT:Okay, i made it by myself. Please lock this thread.

Last edited by TomoAlien on 08-22-08 at 15:20

Old Post 08-22-08 15:03 #
TomoAlien is offline Profile || Blog || PM || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
shinobi.cl
Mini-Member


Posts: 58
Registered: 08-07


Then, post your solution :) It can help others. After all this thread will be queried by search engines sometime.

Old Post 08-22-08 16:44 #
shinobi.cl is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
TomoAlien
Junior Member


Posts: 110
Registered: 06-08



shinobi.cl said:
Then, post your solution :) It can help others. After all this thread will be queried by search engines sometime.


Okay, so there's the code:
code:
script 1 (void) { if (CheckInventory("Some_Key")) Place a action there. else print(s:"You need Some Key to use this thing."); }


Instead of Some_Key you must type in:
RedSkull - Red Skull
BlueSkull - Blue Skull
YellowSkull - Yellow Skull
RedCard - Red Keycard
BlueCard - Blue Keycard
YellowCard - Yellow Keycard

I hope this post helps somebody.

Old Post 08-22-08 17:27 #
TomoAlien is offline Profile || Blog || PM || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Isle
I LOVE YOU LINGUICA


Posts: 218
Registered: 03-02


you could also just use ACS_LockedExecute
http://zdoom.org/wiki/ACS_LockedExecute

Old Post 08-22-08 19:57 #
Isle is offline Profile || Blog || PM || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
All times are GMT. The time now is 15:27. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Executing script only if player has a key.

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.

Forums Directory