Custom Bombs :0

[QUOTE=Spooon;63687]No you didn’t. Went on Noddess a few days ago and my lvl1 hammer image was overwriten.[/QUOTE]

it’s shiny’s hammer image xD

Shiny’s hammer goes from a rusty color to silver to gold. Not silver to silver to gold. Let’s stop being wrong.

i’ll fix it when mah bombs get fixed

you do realize spooon can hide your server… Dont fuck with him and black mail people. Just fix that shit!

oi

[QUOTE=benjiro;63562]It’s sexy! Someone please give me the fixed script :D[/QUOTE]

It has been years since I messed with Graal scripts, but this seems like it would work:

if(created||wasthrown){ setimgpart nd_bomb.png,0,0,32,32; drawunderplayer; timereverywhere; timeout=1.5; this.1=0; this.iindex=0; this.imgcount=0; canbecarried; } if(timeout){ if (this.1==1){ putexplosion2 1,2,x,y; destroy; }else if (this.1==0&&this.imgcount<1.5){ this.imgcount+=.05; if (this.iindex==1){ setimgpart nd_bomb.png,0,0,32,32; this.iindex=0; }else if (this.iindex==0){ setimgpart nd_bomb.png,32,0,32,32; this.iindex=1; } }else if (this.imgcount>=1.5)this.1=1; timeout=.05; } if(exploded){ putexplosion2 1,2,x,y; destroy; }

I’m just guessing, though. XD Tricxta mentioned another bit of code, triggeraction, and I think I remember that, but honestly, I’m a noob, so I can’t help ya.

Ok, I’m having a horrible time trying to merge a screen-shake script into this bomb. Can someone help me?

if(created||wasthrown){
  setimgpart nd_bomb.png,0,0,32,32;
  drawunderplayer;
  timereverywhere;
  timeout=1.5;
  this.1=0;
  this.iindex=0;
  this.imgcount=0;
  canbecarried;
}
if(timeout){
  if (this.1==1){
    putexplosion2 1,2,x,y;
    destroy;
  }else if (this.1==0&&this.imgcount<1.5){
    this.imgcount+=.05;
    if (this.iindex==1){
      setimgpart nd_bomb.png,0,0,32,32;
      this.iindex=0;
    }else if (this.iindex==0){
      setimgpart nd_bomb.png,32,0,32,32;
      this.iindex=1;
    }
  }else if (this.imgcount>=1.5)this.1=1;
  timeout=.05;
}
if(exploded){
  putexplosion2 1,2,x,y;
  destroy;
}

and also

if(COMMAND) {
  for(this.i=0;this.i<10;this.i++) {
    setfocus playerx+random(-1,1),playery+random(-1,1);
    sleep 0.05;
  }
  resetfocus;
}

Should either use action projectile2 or a triggerhack and a detection weapon. These are currently beyond your scripting experience. Or you could try if (exploded) on a detect weapon. Not sure if it works with players.

[QUOTE=Kondie;70038]Should either use action projectile2 or a triggerhack and a detection weapon. These are currently beyond your scripting experience. Or you could try if (exploded) on a detect weapon. Not sure if it works with players.[/QUOTE]
What are you talking about o.0 I only used triggeractions with my custom bomb because of the custom health, this bomb goes all off default. -_-

Yep, you can’t make a detect weapon that uses if (exploded) for players. You’re gonna have to learn triggeractions, Benjiro. :open_mouth: I’m sure Alex will help you.