View previous topic :: View next topic |
Author |
Message |
Säjam of EVOS Guest
|
Posted: Fri Aug 08, 2003 11:22 pm Post subject: the slow and painful death of NPCs |
|
|
i'm havin a bit of trouble figuring out how to permanently destroy an NPC...any thoughts? |
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
Posted: Fri Aug 08, 2003 11:40 pm Post subject: |
|
|
2 ways:
1) Either create a tag, and tell the NPC to appear if that tag is off, then turn the tag on, or
2) Make the NPC, DO NOT place him on the map, then use the code:
Code: | create npc (who,X,Y,Direction) |
then when you are done with him, use:
Simple as that! _________________
Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com |
|
Back to top |
|
 |
Iblis Ghost Cat

Joined: 26 May 2003 Posts: 1233 Location: Your brain
|
Posted: Fri Aug 08, 2003 11:47 pm Post subject: |
|
|
Why couldn't you just use the destroy NPC if the NPC's already on the map? _________________ Locked
OHR Piano |
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
|
Back to top |
|
 |
Iblis Ghost Cat

Joined: 26 May 2003 Posts: 1233 Location: Your brain
|
Posted: Fri Aug 08, 2003 11:51 pm Post subject: |
|
|
Oh. I'd probably just do the tag thing anyway. I say if I can get the same results without scripting, all the better. _________________ Locked
OHR Piano |
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
Posted: Fri Aug 08, 2003 11:56 pm Post subject: |
|
|
Yeah, I would most definitely recommend the Tag Method.
I only use the Create and Destroy if I am having a scripted out scene that is taking place on a map where an NPC is killed.
Otherwise, the Tag Method's easier! _________________
Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com |
|
Back to top |
|
 |
Aethereal SHUT UP. Elite Designer


Joined: 04 Jan 2003 Posts: 928 Location: Gone! I pop in on occasion though.
|
Posted: Sat Aug 09, 2003 1:48 am Post subject: |
|
|
Alternately, although less simply, if you want to do it with variables for some reason, use a map autorun script that checks the variable and destroys the NPC according to the condition. _________________
 |
|
Back to top |
|
 |
Säjam of EVOS Lieutenant Colonel

Joined: 09 Aug 2003 Posts: 2 Location: Everywhere you don't want me to be
|
Posted: Sat Aug 09, 2003 4:46 am Post subject: same |
|
|
Well it seems my needs are a bit more complicated. Here's the plan:
When you first enter a town, there are a few NPCs that are there. You are soppsed to go into a house and later exit, NPCs should still be there. But then...uh..sumthin happens to where the npcs "sumhow" get destroyed. When you enter the town again, they should not be there... _________________ All we have to decide is what to do with the time that is given to us. |
|
Back to top |
|
 |
RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner


Joined: 12 Jul 2003 Posts: 1459
|
Posted: Sat Aug 09, 2003 6:15 am Post subject: |
|
|
Either through plotscripting or through a text box, set the tag on/off depending on what you need, it's real easy, I went through this problem before, and this is the easiest way. _________________ ---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70% |
|
Back to top |
|
 |
RPGrealm5 Sir, the Goombas are dancing again!

Joined: 17 Apr 2003 Posts: 354 Location: Sacramento, CA
|
Posted: Sun Aug 10, 2003 12:25 am Post subject: |
|
|
I just have my characters appear when certain item tags are on. If I have a newer item, then the character doesn't appear. It's works just fine and I don't have to do any scripting. _________________ Gyu, Doh! |
|
Back to top |
|
 |
*Worthy* Critical Thinker

Joined: 11 Aug 2003 Posts: 186
|
Posted: Mon Aug 11, 2003 10:34 pm Post subject: Easiest thing to do |
|
|
You said that you wanted to player to walk out of the town or map with the NPCs still present. Then when the player re-enters the map you want them to disappear.
Provided the player doesn't do anything before re-entering the town (like go through dungeons or talk to NPCs) the best course of action would be to simply make an invisible NPC just outside the town that is activated by "step on". Make it run a script that turns the tag that will be used to make the NPCs disappear ON.
Even easier you could attach a text box to the NPC saying something hinting to the player to hed back into the town and make the text box turn the tag ON.
But if you just want the tag to be turned on without any text boxes, use my first suggestion.
I hope that helps,
~Worthy |
|
Back to top |
|
 |
|