Welcome to the Builder Academy

Question Trigger of the Day - Paintball Example

More
26 Nov 2012 17:26 #1078 by Rumble
Code:
Name: 'Obj Command 81 - Paintball Shoot Blue', VNum: [ 96], RNum: [ 96] Trigger Intended Assignment: Objects Trigger Type: Command , Numeric Arg: 2, Arg list: shoot Commands: * By Rumble of The Builder Academy tbamud.com 9091 if %arg.room% != %actor.room% || %arg.id% == %actor.id% %send% %actor% Shoot: Invalid Target! halt end eval inroom %actor.room% if %arg.inventory(80)% %echoaround% %actor.name% %actor.name% blasts %arg.name% with %actor.hisher% paintball gun. %send% %actor% You blast %arg.name%. %send% %arg% You lose! %purge% %arg.inventory(80)% %zoneecho% %inroom.vnum% %actor.name% shoots %arg.name%. A score for the Blue Team. elseif %arg.inventory(81)% %send% %actor% They are on your team! elseif %send% %actor% %arg.name% is not playing. end
Code:
Name: 'Obj Command 80 - Paintball Shoot Red', VNum: [ 97], RNum: [ 97] Trigger Intended Assignment: Objects Trigger Type: Command , Numeric Arg: 2, Arg list: shoot Commands: * By Rumble of The Builder Academy tbamud.com 9091 if %arg.room% != %actor.room% || %arg.id% == %actor.id% %send% %actor% Shoot: Invalid Target! halt end eval inroom %actor.room% if %arg.inventory(81)% %echoaround% %actor.name% %actor.name% blasts %arg.name% with %actor.hisher% paintball gun. %send% %actor% You blast %arg.name%. %send% %arg% You lose! %purge% %arg.inventory(81)% %zoneecho% %inroom.vnum% %actor.name% shoots %arg.name%. A score for the Red Team. elseif %arg.inventory(80)% %send% %actor% They are on your team! elseif %send% %actor% %arg.name% is not playing. 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.161 seconds