Welcome to the Builder Academy

Question Trigger of the Day Advanced - Smelly Mob

More
11 Jul 2012 00:08 #346 by Rumble
Code:
Name: 'Smelly Bum - M168', VNum: [ 206], RNum: [ 205] Trigger Intended Assignment: Mobiles Trigger Type: Entry , Numeric Arg: 100, Arg list: None Commands: * By Rumble of The Builder Academy tbamud.com 9091 * A trig to let people smell the bum from 1 room away. * For the first move there is no from_room so set it. if !%from_room% eval from_room %self.room.vnum% global from_room halt end wait 1 sec eval inroom %self.room% * %at% %from_room% %echo% %self.name%'s smell slowly dissipates with %self.himher%. if %inroom.north% && %inroom.north(vnum)% != %from_room% %at% %inroom.north(vnum)% %echo% You notice a nasty smell to the south. end if %inroom.south% && %inroom.south(vnum)% != %from_room% %at% %inroom.south(vnum)% %echo% You notice a nasty smell to the north. end if %inroom.east% && %inroom.east(vnum)% != %from_room% %at% %inroom.east(vnum)% %echo% You notice a nasty smell to the west. end if %inroom.west% && %inroom.west(vnum)% != %from_room% %at% %inroom.west(vnum)% %echo% You notice a nasty smell to the east. end if %inroom.up% && %inroom.up(vnum)% != %from_room% %at% %inroom.up(vnum)% %echo% You notice a nasty smell below you. end if %inroom.down% && %inroom.down(vnum)% != %from_room% %at% %inroom.down(vnum)% %echo% You notice a nasty smell above you. end * eval from_room %self.room.vnum% global from_room
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.

More
16 Jul 2012 12:19 - 16 Jul 2012 12:21 #381 by Fizban
Pretty sure this works, remembered it because I remember us each writing the same script basically with slightly different methods when Tink had initially requested help with the script.
Code:
Name: 'Troglodytes Smell!', VNum: [57702], RNum: [ 4195] Trigger Intended Assignment: Mobiles Trigger Type: Entry , Numeric Arg: 100, Arg list: None Commands: wait 1 eval nroom %self.room% %echo% A thick, suffocating musk wafts into the room, the oily stench almost graspable in its richness. if %nroom.north(vnum)% && %nroom.north(vnum)% != %sroom% %at% %nroom.north(vnum)% %echo% A thick, suffocating musk wafts into the room, the oily stench almost graspable in its richness. end if %nroom.south(vnum)% && %nroom.south(vnum)% != %sroom% %at% %nroom.south(vnum)% %echo% A thick, suffocating musk wafts into the room, the oily stench almost graspable in its richness. end if %nroom.west(vnum)% && %nroom.west(vnum)% != %sroom% %at% %nroom.west(vnum)% %echo% A thick, suffocating musk wafts into the room, the oily stench almost graspable in its richness. end if %nroom.east(vnum)% && %nroom.east(vnum)% != %sroom% %at% %nroom.east(vnum)% %echo% A thick, suffocating musk wafts into the room, the oily stench almost graspable in its richness. end if %nroom.up(vnum)% && %nroom.up(vnum)% != %sroom% %at% %nroom.up(vnum)% %echo% A thick, suffocating musk wafts into the room, the oily stench almost graspable in its richness. end if %nroom.down(vnum)% && %nroom.down(vnum)% != %sroom% %at% %nroom.down(vnum)% %echo% A thick, suffocating musk wafts into the room, the oily stench almost graspable in its richness. end if %sroom% %at% %sroom% %echo% The strong, oily musk wafts out of the room with the troglodyte. end eval sroom %self.room.vnum% global sroom
Last edit: 16 Jul 2012 12:21 by Fizban.

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

Time to create page: 0.167 seconds