View Single Post
  #2  
Old 06-20-2010, 12:20 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by qw3rt View Post
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) {
  
random(0,100);
  if (
i<50lay bombslay bombs;
  if (
i>50lay 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);
__________________
Reply With Quote