Welcome to the Builder Academy

Question Trigger of the Day Beginner - Random affect spell

More
18 Sep 2012 14:02 #807 by Rumble
Code:
Name: 'Cast spells on Greet - M135', VNum: [ 166], RNum: [ 166] Trigger Intended Assignment: Mobiles Trigger Type: Greet , Numeric Arg: 10, Arg list: None Commands: * By Rumble of The Builder Academy tbamud.com 9091 * Cast a random spell on players that enter. But, only if they are not already * affected and only 10% of the time. switch %random.12% case 1 if %actor.affect(blind)% dg_cast 'cure blind' %actor% end break case 2 if !%actor.affect(invis)% dg_cast 'invisibility' %actor% end break case 3 if !%actor.affect(det-align)% dg_cast 'detect align' %actor% end break case 4 if !%actor.affect(det-magic)% dg_cast 'detect magic' %actor% end break case 5 if !%actor.affect(sense-life)% dg_cast 'sense life' %actor% end break case 6 if !%actor.affect(watwalk)% dg_cast 'waterwalk' %actor% end break case 7 if !%actor.affect(sanct)% dg_cast 'sanctuary' %actor% end break case 8 if %actor.affect(curse)% dg_cast 'remove curse' %actor% end break case 9 if !%actor.affect(infra)% dg_cast 'infravision' %actor% end break case 10 if %actor.affect(poison)% dg_cast 'cure poison' %actor% end break case 11 if !%actor.affect(bless)% dg_cast 'bless' %actor% end break case 12 if !%actor.affect(prot-evil)% dg_cast 'protection from evil' %actor% end break default say whoops! break 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.206 seconds