PDA

View Full Version : random damage



colombianking
May 21st, 2005, 08:38 PM
im making an rpg kind of game
and i have this code so that it does random damage from 0-20
but i want it to do 10-20
anyone know anything that can help

code
on (release) {
_root.attack = _root.attack=random(20);
}

ExoVoid
May 21st, 2005, 09:19 PM
yes, this is an easy one

<code>
</code>
on (release) {
_root.attack = _root.attack=random(10)+10;
} <code>
</code>