Welcome to the Builder Academy

Question Trigger of the Day - Room While Teleport Example

More
27 Feb 2014 00:06 #4720 by Rumble
This is a good example of how to loop through every player/mob in a room (to make it just players add an if %person.is_pc%. The same thing could be done with %teleport% all.
Code:
Name: 'Room While Teleport Example', VNum: [ 24], RNum: [ 24] Trigger Intended Assignment: Rooms Trigger Type: Random , Numeric Arg: 100, Arg list: None Commands: * By Rumble of The Builder Academy builderacademy.net 9091 * Target the first person or mob in the room. eval person %self.people% wait 1 sec *While there are still mobs or people in the room. while %person% %send% %person% You are next! %echo% I am targetting %person.name%. %echoaround% %person% %person.name% is struck by a bolt of lightning. Leaving only a pile of ash. %teleport% %person% 3 %force% %person% look eval person %self.people% done
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.187 seconds