Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-15-2010, 03:42 PM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
Post 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?
Reply With Quote
  #2  
Old 08-15-2010, 04:19 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Why don't you try it before asking?
Reply With Quote
  #3  
Old 08-15-2010, 04:25 PM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
you need two for() loops one for x and y
Reply With Quote
  #4  
Old 08-15-2010, 05:09 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
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.
Reply With Quote
  #5  
Old 08-15-2010, 06:21 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Crow View Post
you'll need two loops.
NPC Code:
for (i = 0; i < 4096; ++i)
putexplosion2(1, 1, i % 64, int(i / 64));



Reply With Quote
  #6  
Old 08-15-2010, 07:06 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
or..

NPC Code:

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

__________________
Quote:
Reply With Quote
  #7  
Old 08-15-2010, 07:07 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Loriel View Post
NPC Code:
for (i = 0; i < 4096; ++i)
putexplosion2(1, 1, i % 64, int(i / 64));



I expected this, kinda :/
Reply With Quote
  #8  
Old 08-15-2010, 07:20 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
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.
Reply With Quote
  #9  
Old 08-15-2010, 07:30 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
I said he were gonna create a nuke weapon.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:45 AM.


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