Welcome to the Builder Academy

Question Trigger of the Day - Switch Example

More
23 Jan 2013 01:00 #1391 by Rumble
Code:
Name: 'pet dragon', VNum: [59901], RNum: [ 4071] Trigger Intended Assignment: Objects Trigger Type: Command , Numeric Arg: 4, Arg list: pet Commands: if %cmd% == pet && fountain /=%arg% switch %random.4% case 1 %echo% A small dragon comes to life and flits around the room purring. break case 2 %send% %actor% A small dragon comes to life and lands on your shoulder nuzzling your neck lovingly. %echoaround% %actor% %actor.name% smiles happily as a small dragon nuzzles %actor.hisher% neck. break case 3 %echo% Several small dragons come to life and fly around the room in an intricate, mesmerizing dance of joy. break case 4 %send% %actor% You pet a rather grumpy looking dragon and he comes to life nipping your finger for your troubles. %damage% %actor% %random.20% %echoaround% %actor% %actor.name% flinches as a statue comes to life and bites %actor.hisher% finger. break done else return 0 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.269 seconds