Welcome to the Builder Academy

Question Trigger of the Day - Switch Example

More
18 Dec 2013 04:01 #4577 by Rumble
Code:
Name: 'Switch Example', VNum: [ 34], RNum: [ 34] Trigger Intended Assignment: Mobiles Trigger Type: Greet , Numeric Arg: 100, Arg list: None Commands: * By Falstar of The Builder Academy tbamud.com 9091 * Pick a random number 1-7, 7 is actually for the default case. switch %random.7% case 1 set book 'Creative cooking with human flesh' break case 2 set book 'Re-animating the Dead for Dummies' break case 3 set book 'How to teach your henchman to rob graves in 7 days' break case 4 set book 'An A-Z guide of Mage-induced maladies and mutations' break case 5 set book '101 Easy ways to rescue a damsel in distress' break case 6 set book 'Witch Hazel's Bumper Book of rare herbs and potions' break default set book 'Arcane Artifacts made easy' done * wait 1 s %echo% Dr. Von Erhartz seems engrossed in reading a large leatherbound book through a battered pair %echo% of reading glasses. The title reads: %book%. %echo% The doctor looks up at you, seeming to notice you for the first time. wait 1 s say ah %actor.name%, I was wondering when you'd drop by.
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.162 seconds