mob
proc
Use_Perk(obj/Perks/Jutsus/P)
view()<<"<center><font color=white>[usr.Name] <font color=[usr.cc]>uses:"
view()<<"<center><span class = span_label>\icon [P.icon]"
view()<<"<center><font color=white>[P.name]!"
view()<<"<center><font color=[usr.cc]>[P.desc]"
obj
Perks
Jutsus
///Fire
Goukakyuu
icon='JutsuPerks.dmi'
icon_state="Goukakyuu"
name="Katon: Goukakyuu no Jutsu!"
desc=""
Earth_Spikes
icon='JutsuPerks.dmi'
icon_state="Doton"
name="Doton: Doryuso!"
desc=""
Problem Description:
Alright, so say I was to press the 'Earth_Spikes' object in the world, it would display the "Goukakyuu" icon_state instead of the "Doton" icon_state.
How do I fix this?
I know that I haven't mentioned anything about the icon_state in the Use_Perk() proc, however I'm not so sure how to do this properly. I'm sure that having it output [P.icon_state] will just give me the name of the icon_state.