Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   nuke weapon (https://forums.graalonline.com/forums/showthread.php?t=134260209)

xMane 08-15-2010 03:42 PM

nuke weapon
 
Would this be correct to put explosions the complete level?
PHP Code:

for(i=0;i>64;i++){
putexplosion2(1,1,64,temp.i);
putexplosion2(1,1,0,temp.i);
putexplosion2(1,1,temp.i,0);
putexplosion2(1,1,temp.i,64);
putexplosion2(1,1,temp.i,temp.i);


:o?

Soala 08-15-2010 04:19 PM

Why don't you try it before asking?

MrOmega 08-15-2010 04:25 PM

you need two for() loops one for x and y

Crow 08-15-2010 05:09 PM

Yours would put explosions on all level borders and on a diagonal from 0, 0 to 64, 64. As MrOmega said, you'll need two loops.

Loriel 08-15-2010 06:21 PM

Quote:

Originally Posted by Crow (Post 1594235)
you'll need two loops.

NPC Code:
for (i = 0; i < 4096; ++i)
putexplosion2(1, 1, i % 64, int(i / 64));



:cool:

fowlplay4 08-15-2010 07:06 PM

or..

NPC Code:

for (i = 0; i < 64; i++)
putexplosion2(1, 34, 32, i);


Crow 08-15-2010 07:07 PM

Quote:

Originally Posted by Loriel (Post 1594249)
NPC Code:
for (i = 0; i < 4096; ++i)
putexplosion2(1, 1, i % 64, int(i / 64));



:cool:

I expected this, kinda :/

Loriel 08-15-2010 07:20 PM

Realistically you would want something that emits particles, works in relative coordinates/works on a gmap, is centered on some spot and rapidly expands in all directions, not an instant-cover-the-entire-level-in-0.5-damage-fire thing, anyway.

Dnegel 08-15-2010 07:30 PM

I said he were gonna create a nuke weapon. ^^


All times are GMT +2. The time now is 06:34 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.