Welcome to the Builder Academy

Question Trigger of the Day - Secret Hidden Door

More
18 Mar 2014 12:23 #4763 by Rumble
Code:
Name: 'Door Example', VNum: [ 17], RNum: [ 17] Trigger Intended Assignment: Rooms Trigger Type: Command , Numeric Arg: 100, Arg list: move Commands: * Example by Falstar for room 14520 * The following trigger is designed to reveal a trapdoor leading down when * Player types 'Move Chest' * * The following ARGument determines what can be MOVEd ('move' Command inserted * in Arg List of trigger) if %arg% == chest *Send text to player to show effect of command %send% %actor% You move the chest across the floor, revealing a trapdoor underneath!! *Send text to other players in room to inform them of Player's discovery %echoaround% %actor% %actor.name% has discovered a hidden trapdoor under a chest! * Set door flags to 'ab' - Exit is a door that can be opened and closed, then close door %door% 14520 down flags ab * Change door name to 'trapdoor' (used in door commands, eg open trapdoor, lock trapdoor) %door% 14520 down name trapdoor * Set room that trapdoor exits leads to (Room 14521 in this case) %door% 14520 down room 14521 * Set Exit desc for the wary adventure who decides to 'look down' %door% 14520 down description A wooden ladder leads down into the darkness. * Set the Vnum of the KEY OBJECT which will lock/unlock door %door% 14520 down key 14500 * Now for Continuity, door commands must be set for reverse direction FROM 14521 %door% 14521 up flags ab %door% 14521 up name trapdoor %door% 14521 up room 14520 %door% 14521 up description A wooden ladder leads up into a storeroom. %door% 14521 up key 14500 * IMPORTANT: Note reverse of direction in both the commands and extra * descriptions and room numbers it can be very easy to get lost here and * probably get your adventurer lost too. Finally set up what happens when * adventurer tries to move anything else and end the trigger else %send% %actor% Move what ?! end
If this was helpful please vote or leave a review for TBA.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.211 seconds