Skul
Master
Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9
|
RE: How to compare random values
local.total can work, let's say you're using this on an npc to divvy gold at death, here's an example:
Code:
on=@death
local.total=<eval {1 15}> //example amount
if (<attackers>)
local.divvy=<eval <local.total> /<local.attackers>> //divvy between all attackers
for x 0 <eval <attackers> +-1>
uid.<attacker.<local.x>.uid>.newgold <local.divvy> //give divided gold to the attacker
endfor
endif
This event would be placed on the monster, or all monsters, however u choose to use it.
"I ask a question to the answer I already know."
Marchadium :: http://www.marchadium.ca/ :: Join us!
|
|
06-18-2014 08:00 AM |
|
|