client
command_prompt = "Name - [mob.name] Race - [mob.Race] Hp - [mob.Hp] / [mob.MaxHP] Mp - [mob.Mp] / [mob.MaxMP] Gold - [mob.gold] Exp - [mob.exp] / [mob.MaxExp]"
Problem description:
Erm...Errors that those vars dont exist, but they do XX
ID:262698
Oct 24 2005, 2:56 pm
|
|
Code:
client Problem description: Erm...Errors that those vars dont exist, but they do XX |
Oct 24 2005, 3:01 pm
|
|
I'm pretty sure that the default typecast for client.mob is only /mob, even if you set world/mob to something else, so any variable defined within a child of /mob (eg. /mob/Player/var/Exp) would be undefined. Also, to define it like that, you need a constant expression, like a plain string without brackets. So I suggest switching to a looping proccess with a sleep in it, maybe the built in Stat() proc.
|
In response to DarkCampainger
|
|
Yes, you can do it in stat()
mob/Stat() BUT be warned, everytime Stat() runs, and changes the command_prompt, the message in the pink bar get's erased, so.. It's going to be annoying ot players. |