Welcome to the Builder Academy

Question Trigger of the Day Beginner - Teleport by Speech

More
30 Aug 2012 12:06 #760 by Rumble
Code:
Name: 'Prison Teleport 97-91', VNum: [ 172], RNum: [ 172] Trigger Intended Assignment: Rooms Trigger Type: Speech , Numeric Arg: 1, Arg list: * Commands: * By Rumble of The Builder Academy tbamud.com 9091 * evaluate the first word. eval word %speech.car% * evaluate the rest of the speech string. eval rest %speech.cdr% * keep looping until there are no more words. while %word% if %word% == freedom && %actor.room.vnum% == 97 %send% %actor% You feel a strange shifting as you are teleported out of the cell, you hear a distant clanking as the shackles fall to the floor. %teleport% %actor% 96 elseif %word% == integrity && %actor.room.vnum% == 96 %teleport% %actor% 95 %send% %actor% You feel a strange shifting as you are teleported out of the cell. elseif %word% == wisdom && %actor.room.vnum% == 95 %teleport% %actor% 94 %send% %actor% You feel a strange shifting as you are teleported out of the cell. elseif %word% == perseverance && %actor.room.vnum% == 94 %teleport% %actor% 93 %send% %actor% You feel a strange shifting as you are teleported out of the cell. end eval word %rest.car% eval rest %rest.cdr% 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.518 seconds