Welcome to the Builder Academy

Question Trigger of the Day - If Elseif Else End Example II

More
07 Dec 2012 23:05 #1184 by Rumble
Code:
Name: 'if/elseif/else Example', VNum: [ 93], RNum: [ 93] Trigger Intended Assignment: Rooms Trigger Type: Enter , Numeric Arg: 100, Arg list: None Trigger of the Day - Equip Example [code]Name: 'Kind Soul 13 - Give Newbie Equipment', VNum: [ 94], RNum: [ 94] Trigger Intended Assignment: Mobiles Trigger Type: Greet , Numeric Arg: 100, Arg list: None Commands: * By Rumble of The Builder Academy tbamud.com 9091 * If a player is < level 3 and naked it fully equips them. If < 3 and missing * some equipment it will equip one spot. if %actor.is_pc% && %actor.level% < 3 wait 2 sec if !%actor.eq(*)% say get some clothes on! Here, I will help. %load% obj 50 %actor% light %load% obj 51 %actor% rfinger %load% obj 52 %actor% lfinger %load% obj 53 %actor% neck1 %load% obj 54 %actor% neck2 %load% obj 55 %actor% body %load% obj 56 %actor% head %load% obj 57 %actor% legs %load% obj 58 %actor% feet %load% obj 59 %actor% hands %load% obj 60 %actor% arms %load% obj 61 %actor% shield %load% obj 62 %actor% about %load% obj 63 %actor% waist %load% obj 64 %actor% rwrist %load% obj 65 %actor% lwrist %load% obj 66 %actor% wield %load% obj 67 %actor% hold halt end if !%actor.eq(light)% Say you really shouldn't be wandering these parts without a light source %actor.name%. shake %load% obj 50 give generic %actor.name% halt end if !%actor.eq(rfinger)% || !%actor.eq(lfinger)% Say did you lose one of your rings? sigh %load% obj 51 give generic %actor.name% halt end if !%actor.eq(neck1)% || !%actor.eq(neck2)% Say you lose everything don't you? roll %load% obj 53 give generic %actor.name% halt end if !%actor.eq(body)% say you won't get far without some body armor %actor.name%. %load% obj 55 give generic %actor.name% halt end if !%actor.eq(head)% Say protect that noggin of yours, %actor.name%. %load% obj 56 give generic %actor.name% halt end if !%actor.eq(legs)% Say why do you always lose your pants %actor.name%? %load% obj 57 give generic %actor.name% halt end if !%actor.eq(feet)% Say you can't go around barefoot %actor.name%. %load% obj 58 give generic %actor.name% halt end if !%actor.eq(hands)% Say need some gloves %actor.name%? %load% obj 59 give generic %actor.name% halt end if !%actor.eq(arms)% Say you must be freezing %actor.name%. %load% obj 60 give generic %actor.name% halt end if !%actor.eq(shield)% Say you need one of these to protect yourself %actor.name%. %load% obj 61 give generic %actor.name% halt end if !%actor.eq(about)% Say you are going to catch a cold %actor.name%. %load% obj 62 give generic %actor.name% halt end if !%actor.eq(waist)% Say better use this to hold your pants up %actor.name%. %load% obj 63 give generic %actor.name% halt end if !%actor.eq(rwrist)% || !%actor.eq(lwrist)% Say misplace something? smile %load% obj 65 give generic %actor.name% halt end if !%actor.eq(wield)% Say without a weapon you will be Fido food %actor.name%. %load% obj 66 give generic %actor.name% halt end 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.308 seconds