Graal Forums

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

MasterJak 09-11-2005 08:51 AM

putexplosion...
 
Here's the script:

canbecarried;
if (wasthrown) {
putexplosion 1,npcx,npcy;
sleep 1;
hide;
}

What I can't make it do:
When it (the npc) is thrown, it will blow up wherever it lands.

Help =*(

Riot 09-11-2005 09:00 AM

You just want to get the NPC's x and y, which is just that, x and y.

Try replacing npcx and npcy with x and y.

excaliber7388 09-11-2005 04:07 PM

erm, this would work XD:
NPC Code:
if(created){
canbecarried
}
if(wasthrown){
putexplosion 1,x,y;
sleep 1;
hide;
}


Skyld 09-11-2005 04:40 PM

You should not just hide; the NPC. You should destroy; it.

excaliber7388 09-11-2005 06:11 PM

erm, why, if you hide it you can bring it back later, with show

MasterJak 09-11-2005 07:50 PM

Thanks for all of your help :D

Skyld 09-12-2005 06:07 PM

Quote:

Originally Posted by excaliber7388
erm, why, if you hide it you can bring it back later, with show

If you want your object to explode, why would you want to bring it back?

If you do not want to bring it back, why leave the script in memory?

Raeiphon 09-18-2005 11:49 AM

You cant exactly overload the script memory unless you have an option like the Maloria sparring /bombs which creats a massive amount of them, but destroy would be far more logical than leaving it unused.


All times are GMT +2. The time now is 09:01 AM.

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