As you may know from reading my journal here, I'm working on a Doom weapon mod that allows the player to purchase his weapons from terminals. I need some help, however:
From EDGE.SCR:
Code: Select all
start_map map01
radiustrigger 0 0 -1
name DISPENSER1
tag 101
TAGGED_INDEPENDENT
TAGGED_REPEATABLE
TAGGED_DISABLED
SHOW_MENU "SupplyBot Lv.1 - Make your selection!" \
"Buy Crowbar - $10" \
"Buy Knife - $30" \
"Shut Down"
JUMP_ON MENU option1 option2 optionEnd
label option1
RETRIGGER
disable_script DISPENSER1
jump crowbarfinishstuff
label option2
tip "Knife Dispensed." 3 false
jump finishstuff
label optionEnd
jump finishstuff
label crowbarfinishstuff
oncondition AMMO16(10)
oncondition NOT_CHAINSAW
tip "Crowbar Dispensed." 3 false
lose_benefit ammo16(10)
give_benefit chainsaw
label finishstuff
disable_script DISPENSER1
end_radiustrigger
end_map
Code: Select all
[CHAINSAW:2005]
RADIUS=48;
HEIGHT=56;
SPECIAL=USABLE;
SPRITE_SCALE=0.25;
STATES(SPAWN)=DIS1:A:1:NORMAL:NOTHING;
STATES(TOUCH)=DIS1:A:10:NORMAL:RTS_ENABLE_TAGGED(101),
DIS1:A:30:NORMAL:NOTHING,
DIS1:A:10:NORMAL:TOUCHY_REARM,
#SPAWN;