blamstick wrote:Wondering if someone can tell me how to remove the # from in front of the named mobs names because I want to do this kind of command -
/g $target(name,clean) is at $target(hp,pct) Health
If it's a named mob it would show up like '#Dread Skeleton is at 50% Health'
Wanted to check if the first character is a # and remove it if it is. I'm just not as saavy with coding as some of you are. thanks.
Heh, what's with all the self flagellation these days?
Skeleton junk, this is a quicky pulled from one of my scripts that should work... overly fancy but cut and paste /shrug.
Code: Select all
/if $left(1,"$target(name,clean)"=="#" {
/g $right($calc($strlen("$target(name,clean)")-1),"$target(name,clean)") is at $target(hp,pct) Health
} else {
/g $target(name,clean) is at $target(hp,pct) Health
}
G