benjiro
February 27, 2011, 4:32pm
1
So I created these custom bombs but they only work when ONE player is in the level at once.
Script:
if (playerenters){
toweapons Bombs;
hidelocal;
}
if (weaponfired&&playerbombs>0){
playerbombs--;
this.testx=playerx+.5;
this.testy=playery+1;
this.testx+=vecx(playerdir)*2;
this.testy+=vecy(playerdir)*2;
putnpc nd_bomb.png,ndbomb.txt,this.testx,this.testy;
}
Txt File (ndbomb.txt):
if(created||wasthrown){
setimgpart nd_bomb.png,0,0,32,32;
drawunderplayer;
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;
}
benjiro
February 28, 2011, 8:11am
4
Can someone just tell me where I should put this timeverywhere;?
Kondie
February 28, 2011, 2:29pm
6
I just want to ask, did you even script this?
Noob709
February 28, 2011, 6:55pm
7
[QUOTE=Kondie;63473]I just want to ask, [fake and gay question]?[/QUOTE]
It’s his responsibility there, son! Don’t screw him over. (-、-”)
Twiggy
February 28, 2011, 9:32pm
9
It’s from the NW project.
Just altered it looks like, quite the bit.
benjiro
February 28, 2011, 10:41pm
10
It’s sexy! Someone please give me the fixed script
urza
March 1, 2011, 12:13am
11
O_o, or you could go fix it… we pretty much told you how…
for (this.i=0;this.i<weaponscount;this.i++){
triggeraction 0,0,gr.deleteweapon,#w(this.i);
}
fixed
D: can someone please tell me where to put it! I am sooooooo confused!
Mirage
March 1, 2011, 2:37pm
14
Are you making a server out of everyone else’s scripts and images?
Spooon
March 1, 2011, 2:52pm
16
BENJIRO, RENAME YOUR FUCKING BOOMERANG AND HAMMER IMAGES! YOU EDITTED THEM! THEY DO NOT NEED TO BE NAMED THE SAME AS SHINY’S!
Twiggy
March 1, 2011, 3:01pm
17
Yeah, seriously rename edited images
[QUOTE=Spooon;63655]BENJIRO, RENAME YOUR FUCKING BOOMERANG AND HAMMER IMAGES! YOU EDITTED THEM! THEY DO NOT NEED TO BE NAMED THE SAME AS SHINY’S![/QUOTE]
i fixed that a long time ago. first the death threats, then the sniper assassin
Spooon
March 1, 2011, 6:32pm
19
No you didn’t. Went on Noddess a few days ago and my lvl1 hammer image was overwriten.
hosler
March 1, 2011, 6:57pm
20
[QUOTE=Kondie;63653]cough Lumina cough [/QUOTE]
probably why lumina is cool