fiction
New member
Hi, i'm having problem with the setunitdata hp, max hp and lvl.
For some reason isn't working for me, for example i made the following script:
.@LordBaphomet[0] = monster(.@map$, 145, 311, "--ja--", 1929, 1, .@label$ + "::OnBaphometDead");
setunitdata ( .@LordBaphomet[0],UDT_HP,35000000);
setunitdata ( .@LordBaphomet[0],UDT_MAXHP,35000000);
setunitdata ( .@LordBaphomet[0],UDT_LEVEL,130);
when the monster appear, his HP appear in 14% instead of the 100%, and i need to attack the monster to update his lvl.
Before the first attack, his HP is on 14% and his lvl isn't updated.

After the first attack, his lvl has been updated.

For some reason isn't working for me, for example i made the following script:
.@LordBaphomet[0] = monster(.@map$, 145, 311, "--ja--", 1929, 1, .@label$ + "::OnBaphometDead");
setunitdata ( .@LordBaphomet[0],UDT_HP,35000000);
setunitdata ( .@LordBaphomet[0],UDT_MAXHP,35000000);
setunitdata ( .@LordBaphomet[0],UDT_LEVEL,130);
when the monster appear, his HP appear in 14% instead of the 100%, and i need to attack the monster to update his lvl.
Before the first attack, his HP is on 14% and his lvl isn't updated.

After the first attack, his lvl has been updated.

Last edited by a moderator: