Quote:
Originally Posted by qw3rt
Hi
I would liked to script a simple baddy but i have a problem,i'm sure its simple but i can't find a solution
PHP Code:
if (timeout && this.mode==4) {
i = random(0,100);
if (i<50) lay bombs; lay bombs;
if (i>50) lay darts;
that's a part of the script its about when the baddy die i would like it lays bombs or arrows.
It works, but the problem is it lay 1 bombs icon and when i take it, it gives me 10 bombs.
Me I would like it lay ,instead of 1bombs icons and 10 bombs, 2 bombs icons and 10 bombs.
Thanks, i hope i explained it well.
|
I hope this helps
HTML Code:
if (i<50) {
lay bombs;
lay bombs;
}
You can also lay bombs in a certain area, but you can't change the amount you receive
HTML Code:
lay2 bombs, x, y + 2;
Will lay bombs 2 tiles down from the baddy
(GS2 Converted- will only work online)
HTML Code:
lay("bombs");
lay2("bombs", this.x, this.y + 2);