Welcome to the Builder Academy

Question Trigger of the Day - Room Combination Lock

More
14 Oct 2012 22:04 #898 by Rumble
Code:
Name: 'Room Command Combination Lock', VNum: [ 92], RNum: [ 92] Trigger Intended Assignment: Rooms Trigger Type: Command , Numeric Arg: 100, Arg list: push Commands: * By Rumble of The Builder Academy tbamud.com 9091 * check argument if %arg% == red %send% %actor% You push the red button. set pushed %pushed% red global pushed elseif %arg% == yellow %send% %actor% You push the yellow button. if %pushed% /= red set pushed %pushed% yellow global pushed else unset pushed end elseif %arg% == green %send% %actor% You push the green button. if %pushed% /= red && %pushed% /= green set pushed %pushed% green global pushed else unset pushed end elseif %arg% == blue %send% %actor% You push the blue button. if %pushed% /= red && %pushed% /= yellow && %pushed% /= green set pushed %pushed% blue global pushed else unset pushed end elseif %arg% == purple %send% %actor% You push the purple button. if %pushed% /= red && %pushed% /= yellow && %pushed% /= green && %pushed% /= blue %send% %actor% You hear a loud click as you push the final button. end unset pushed elseif %arg% == white %send% %actor% You push the white reset button. unset pushed else %send% %actor% Push what ?! halt end * reset the buttons if necessary if !%pushed% %send% %actor% The buttons all suddenly pop back out. else * send the state of the buttons %send% %actor% %pushed% 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.169 seconds