mob
verb
Take_Type(mob/M as mob in view(3))
M.loc = locate(usr.lx,usr.ly,usr.lz)
M.icon = 'Kirbys.dmi'
M.icon_state = "nothing"
M.loc = locate(2,2,1)
M.icon = 'Kirbys.dmi'
M.icon_state = ""
usr.icon = 'Kirbys.dmi'
usr.icon_state = "Inflated"
sleep(40)
if("[M.Kirby] == Tornado Kirby")
usr.icon = 'Kirbys.dmi'
usr.icon_state = "tornado kirby"
view() << "[usr] took [M]'s Kirby Type!"
if("[M.Kirby] == Ice Kirby")
usr.icon = 'Kirbys.dmi'
usr.icon_state = "ice kirby"
view() << "[usr] took [M]'s Kirby Type!"
if("[M.Kirby] == Normal")
usr.icon = 'Kirbys.dmi'
usr.icon_state = ""
view() << "[usr] took [M]'s Kirby Type!"
mob/var/Kirby = "Normal"
ID:263969
![]() Apr 6 2008, 8:03 am
|
|
It Says "[usr] took [M]'s type!" 3 times dont know why i have fixed it before but that isnt the only problem, it will not change the players icon..and idk why
|
Hint: You do not want the other quote at the end of statement... if you output what you entered, the following will happen:
What's with keep redefining the icon?
Also, switch() is a good idea here... you can also put the kirby message after the switch() since you're repeating it in the validation