MantisBT - Zandronum
View Issue Details
0000946Zandronum[All Projects] Suggestionpublic2012-08-01 22:512014-06-12 20:16
Llewellyn 
 
nonefeatureN/A
feedbackopen 
1.0-beta 
 
0000946: EXIT script type.
Basically a new Script type that happens when an actor activates an exit. (Switch, walkover, etc.)
The script type, EXIT, uses a return value to determine whether it should actually exit or not. Return of -1 means do not exit. The default return value of 0 means normal exit. Any other value above 0 means a map number.

Additional things that may or may not happen:
If the script is Delayed, then the map does not exit until a return value is given (assumes -1).
Script should probably be AlwaysExecuted.
Script should probably be stopped if the map changes.

Example:

Script 1 EXIT
{
if (GetActorInventory(ActivatorTID(), "BlueCard", 1))
    terminate;
else
    Return -1;
}

(I wanted this so I could make a mod and use old maps or stock Doom2 maps.)
No tags attached.
Issue History
2012-08-01 22:51LlewellynNew Issue
2012-08-01 23:03ZzZomboNote Added: 0004179
2012-08-01 23:06LlewellynNote Added: 0004180
2012-08-01 23:08LlewellynNote Edited: 0004180bug_revision_view_page.php?bugnote_id=4180#r2290
2012-08-01 23:10LlewellynNote Edited: 0004180bug_revision_view_page.php?bugnote_id=4180#r2291
2012-08-01 23:10LlewellynNote Edited: 0004180bug_revision_view_page.php?bugnote_id=4180#r2292
2012-08-01 23:49LlewellynNote Edited: 0004180bug_revision_view_page.php?bugnote_id=4180#r2293
2012-08-02 00:30DuskNote Added: 0004182
2012-08-02 00:31DuskNote Edited: 0004182bug_revision_view_page.php?bugnote_id=4182#r2295
2012-09-06 08:46LlewellynNote Added: 0004602
2012-09-10 02:22LlewellynNote Deleted: 0004602
2014-06-12 20:16WatermelonNote Added: 0009159
2014-06-12 20:16WatermelonStatusnew => feedback

Notes
(0004179)
ZzZombo   
2012-08-01 23:03   
Huh? What stopped you from checking such things as keys the player has upon activation of the exit button in an activation script which has to be bound to the button via action specials? I recommend close this issue. For old maps use a map translator (http://www.zdoom.org/wiki/Map_translator).
(0004180)
Llewellyn   
2012-08-01 23:06   
(edited on: 2012-08-01 23:49)
ZzZombo, I don't want to edit every map in Doom2.wad and release it illegally, sorry. But I'll look into this Map_Translator feature (that I've never even heard of.)
EDIT: I think MAP_TRANSLATOR would probably work instead of this, IF it was implemented, which it isn't.

(0004182)
Dusk   
2012-08-02 00:30   
(edited on: 2012-08-02 00:31)
I think this should be asked from ZDoom first?

Also, a script cannot return a value, you probably want SetResultValue

(0009159)
Watermelon   
2014-06-12 20:16   
Check EVENTS for zan 1.3 and see if this is possibly solved there