Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

the slow and painful death of NPCs

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Säjam of EVOS
Guest






PostPosted: Fri Aug 08, 2003 11:22 pm    Post subject: the slow and painful death of NPCs Reply with quote

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

PostPosted: Fri Aug 08, 2003 11:40 pm    Post subject: Reply with quote

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:

Code:
destroy npc (who)


Simple as that!
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Iblis
Ghost Cat




Joined: 26 May 2003
Posts: 1233
Location: Your brain

PostPosted: Fri Aug 08, 2003 11:47 pm    Post subject: Reply with quote

Why couldn't you just use the destroy NPC if the NPC's already on the map?
_________________
Locked
OHR Piano
Back to top
View user's profile Send private message Send e-mail
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Fri Aug 08, 2003 11:49 pm    Post subject: Reply with quote

Because, if you did that, Iblis, then the NPC would still be there once you re-enter the map.
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Iblis
Ghost Cat




Joined: 26 May 2003
Posts: 1233
Location: Your brain

PostPosted: Fri Aug 08, 2003 11:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Fri Aug 08, 2003 11:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Aethereal
SHUT UP.
Elite Designer
Elite Designer



Joined: 04 Jan 2003
Posts: 928
Location: Gone! I pop in on occasion though.

PostPosted: Sat Aug 09, 2003 1:48 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
Säjam of EVOS
Lieutenant Colonel




Joined: 09 Aug 2003
Posts: 2
Location: Everywhere you don't want me to be

PostPosted: Sat Aug 09, 2003 4:46 am    Post subject: same Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Sat Aug 09, 2003 6:15 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
RPGrealm5
Sir, the Goombas are dancing again!




Joined: 17 Apr 2003
Posts: 354
Location: Sacramento, CA

PostPosted: Sun Aug 10, 2003 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
*Worthy*
Critical Thinker




Joined: 11 Aug 2003
Posts: 186

PostPosted: Mon Aug 11, 2003 10:34 pm    Post subject: Easiest thing to do Reply with quote



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
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group