ID:179529
 
Let's say I have a stapanel called "Skills" and I
have a skill called "melee". Is it possible
to add a "+", instead of a number, next to a skill each time you fight a set number of monsters?
Example:

melee +
melee ++

I have this for now:

mob
var
level

Stat()
statpanel("Skills")
stat("Melee",level)


I'm not sure how to add add a + sign to "level".

mob
proc
skilllevel(mob/M as mob)
M.level += ???


Any ideas ?

Thx.
You could initialize level to an empty string:
mob
var
level = ""

And then where you increase level, just add the string "+" to it:
mob
proc
skilllevel(mob/M as mob)
M.level += "+"


That will tack another + onto the end of the string.
In response to Air Mapster
Is it possible to add a new stat inside a statpanel or
do I have to put them all at the start ?
For example, I learn a second skill called "Force"
and I want it to be under "Melee".

Thx.
In response to Cravens
This isn't probably the best way to do this but here's what I do:

mob/var/has_fire = 0

mob/Stat()
statpanel("Skills")
if(src.has_fire)
stat("Fire attack")

mob/verb/Add_Fire()
src.has_fire=1
In response to Air Mapster
Air Mapster wrote:
You could initialize level to an empty string:
mob
> var
> level = ""
>

And then where you increase level, just add the string "+" to it:
mob
> proc
> skilllevel(mob/M as mob)
> M.level += "+"

That will tack another + onto the end of the string.

I tried adding a tag inside the string. Example:
M.level += "<Big>+</Big>"


It doesn't work though...
Is it possible at least ?

Thx.
In response to Cravens
Html cannot be used in verb panels or statpanels.