Welcome to the Builder Academy

Question Trigger of the Day - Phoenix Death

More
05 Jul 2012 15:10 - 05 Jul 2012 15:10 #320 by Rumble
Trigger of the Day - Phoenix Death
Code:
Name: 'Phoenix Rising - 211', VNum: [ 203], RNum: [ 202] Trigger Intended Assignment: Mobiles Trigger Type: Death , Numeric Arg: 100, Arg list: None Commands: * By Rumble of The Builder Academy tbamud.com 9091 * You can't use waits in a mob death trig. * Phoenix turns into ashes when it dies and is reborn 3 times. * O219 is !TAKE and must always be in the room to count the deaths. emote shrieks in pain and bursts into flames. * Phoenix triggers 212 to count the deaths. Make it a unique command. phoenix2 * Damage everyone in the room from the fire. set room_var %self.room% %echo% The phoenix is completely enveloped in flames and explodes, burning everyone in the room. * Target the first char set target_char %room_var.people% * Loop through everyone in the room. while %target_char% * Set the next target before this one perhaps dies. set tmp_target %target_char.next_in_room% * Dish out the damage. if %target_char.is_pc% %send% %target_char% The fire burns you. %damage% %target_char% 10 end * Find next target set target_char %tmp_target% * Loop back done * Can't purge it (yet it is on the todo list) so teleport it to 0. %teleport% %self% 0 * This prevents a death cry. return 0
If this was helpful please vote or leave a review for TBA.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com
Last edit: 05 Jul 2012 15:10 by Rumble.

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

Time to create page: 0.165 seconds