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

Single-use npc question

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Meatballsub
Divine Bovine




Joined: 16 Jun 2003
Posts: 437
Location: Northwest Georgia

PostPosted: Thu Oct 04, 2007 7:19 am    Post subject: Single-use npc question Reply with quote

I have a one-time use npc that triggers a script. As of now, the npc disappears and then the script runs. Is there a way to make it so the npc does not disappear until AFTER the script has run?
_________________
MOCBJ Software - My Games
The Hamster Wheel - OHRRPGCE Information Database
Back to top
View user's profile Send private message Visit poster's website
Newbie_Power




Joined: 04 Sep 2006
Posts: 1762

PostPosted: Thu Oct 04, 2007 7:35 am    Post subject: Reply with quote

You probably could just have it "Appear on <x> tag", then manually turn the tag off at the end of the script.
_________________

TheGiz> Am I the only one who likes to imagine that Elijah Wood's character in Back to the Future 2, the kid at the Wild Gunman machine in the Cafe 80's, is some future descendant of the AVGN?
Back to top
View user's profile Send private message
Meatballsub
Divine Bovine




Joined: 16 Jun 2003
Posts: 437
Location: Northwest Georgia

PostPosted: Thu Oct 04, 2007 8:01 am    Post subject: Reply with quote

That would work great if I didn't have several of these npcs. I guess I should have mentioned that before. I would have to use a seperate tag for each npc. Then again, if it is my only choice, I guess that is what I can do.
_________________
MOCBJ Software - My Games
The Hamster Wheel - OHRRPGCE Information Database
Back to top
View user's profile Send private message Visit poster's website
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Thu Oct 04, 2007 8:11 am    Post subject: Reply with quote

If all of these NPCs are running the same script, then you can save yourself some trouble by passing in their tag number as the script argument.

Code:
script, myscript, tag (
 [do your stuff]
 set tag(tag, on)
)


Alternatively, you can also give the NPCs a text box. They won't disappear before the text box does.
_________________
Back to top
View user's profile Send private message Visit poster's website 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