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 09-11-2005, 08:51 AM
MasterJak MasterJak is offline
Registered User
Join Date: Apr 2005
Posts: 4
MasterJak is on a distinguished road
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 =*(
Reply With Quote
  #2  
Old 09-11-2005, 09:00 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
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.
Reply With Quote
  #3  
Old 09-11-2005, 04:07 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
erm, this would work XD:
NPC Code:
if(created){
canbecarried
}
if(wasthrown){
putexplosion 1,x,y;
sleep 1;
hide;
}

Reply With Quote
  #4  
Old 09-11-2005, 04:40 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
You should not just hide; the NPC. You should destroy; it.
__________________
Skyld
Reply With Quote
  #5  
Old 09-11-2005, 06:11 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
erm, why, if you hide it you can bring it back later, with show
Reply With Quote
  #6  
Old 09-11-2005, 07:50 PM
MasterJak MasterJak is offline
Registered User
Join Date: Apr 2005
Posts: 4
MasterJak is on a distinguished road
Thanks for all of your help
Reply With Quote
  #7  
Old 09-12-2005, 06:07 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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?
__________________
Skyld
Reply With Quote
  #8  
Old 09-18-2005, 11:49 AM
Raeiphon Raeiphon is offline
I never asked for this.
Join Date: Jun 2005
Posts: 855
Raeiphon is on a distinguished road
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.
__________________

I hope for nothing. I fear nothing. I am free.
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 04:03 AM.


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