mob
var
slot1=""
slot2=""
verb
slot1()
set hidden = 1
if(slot1 == "")
src << "You have pushed slot 1"
switch(src.slot1)
if("Punch")
src.Punch()
if("Kick")
src.Kick()
if("Sweep")
src.Sweep()
if("Headbutt")
src.Headbutt()
if("Jab")
src.Jab()
if("Chop")
src.Chop()
mob
proc
Punch()
set hidden = 1
src << "You aimlessly punch the air"
Kick()
set hidden = 1
src << "You aimlessly kick the air."
Sweep()
set hidden = 1
src << "You aimlessly Sweep the air."
Headbutt()
set hidden = 1
src << "You aimlessly Headbutt the air."
Jab()
set hidden = 1
src << "You aimlessly Jab the air."
Chop()
set hidden = 1
src << "You aimlessly Chop the air."
Problem description:
Hey Guys! I was wondering if there is a better way of doing this? All of thouse If's dont seem to good? If there is a better way of doing this please let me know!
Carnia :)