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

respawning npcs

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







PostPosted: Wed Aug 05, 2009 11:30 am    Post subject: respawning npcs Reply with quote

after you use npcs and set it to use only once, is there any way to make them respawn, or come back after you leave the map and reenter?
Back to top
Guest







PostPosted: Wed Aug 05, 2009 11:43 am    Post subject: Reply with quote

You would have to turn off their one-time use only tag via a script, but there was some discussion about changing these tags' numbering eventually, so my suggestion would be, rather than make the NPC one-time usable, make it call a script that does everything you want it to do and then destroy itself via the 'delete npc' command. NPCs removed in this way reappear when the map is re-entered.

If you want conditions on when the NPC should reappear or not, you should give it a 'appear if' tag of your own and write your scripts accordingly.

Does this all make sense?
Back to top
Guest







PostPosted: Wed Aug 05, 2009 11:54 am    Post subject: Reply with quote

yea ill try it
Back to top
binoal




Joined: 20 Jun 2009
Posts: 123
Location: My Own Little World

PostPosted: Wed Aug 05, 2009 12:32 pm    Post subject: Reply with quote

im not 100% sure if this would work, but you could make a script, and say you have it set to use once and the tag is 1012, you could put set tag (1012,off)
_________________
Resident Evil RPG Demo

http://www.castleparadox.com/gamelist-display.php?game=963

Legend Of Zelda: Reptilian Warlord Demo

http://www.castleparadox.com/gamelist-display.php?game=961
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Wed Aug 05, 2009 1:17 pm    Post subject: Reply with quote

Manipulating one-time-use tags is generally a bad idea. It will actually work, but could stop working in future versions if we change the way one-time-use NPCs work.

If you want to make an NPC vanish until the map gets reloaded, you can use a very simple script:

Code:

plotscript, temp remove npc, arg, ref, begin
  destroy NPC(ref)
end


If you use this script on an NPC, the NPC will be removed, but it will come back again if you leave the map.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Wed Aug 05, 2009 5:05 pm    Post subject: Reply with quote

James Paige wrote:
Manipulating one-time-use tags is generally a bad idea. It will actually work, but could stop working in future versions if we change the way one-time-use NPCs work.


Haha, and my response would be "It's true that we plan to change tag numbering, but feel free to manipulate one-time-use NPC tags, as there are so many games which do this that we can't possibly get away with breaking them"
If we wanted we could break just one of 'set tag(1000+read npc(npc, 11), off)' or 'set tag(1012, off)'
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Thu Aug 06, 2009 9:22 am    Post subject: Reply with quote

The Mad Cacti wrote:
James Paige wrote:
Manipulating one-time-use tags is generally a bad idea. It will actually work, but could stop working in future versions if we change the way one-time-use NPCs work.


Haha, and my response would be "It's true that we plan to change tag numbering, but feel free to manipulate one-time-use NPC tags, as there are so many games which do this that we can't possibly get away with breaking them"
If we wanted we could break just one of 'set tag(1000+read npc(npc, 11), off)' or 'set tag(1012, off)'


Yeah, you are right. I wouldn't want to break it either.

That previous post was from bizzaro-James from the negaverse.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ronin Catholic
Deadliest of Fairies




Joined: 23 Jul 2007
Posts: 530
Location: My Girlfriend

PostPosted: Thu Aug 06, 2009 1:31 pm    Post subject: Reply with quote

A Superman reference and a Sailor Moon reference in the same sentence? That's just weird.

Anyway, I was just recently wonding how to do this (to make Mystic Quest style non-random enemies).
_________________
"I didn't start the flame war;
I don't know what you thought here
'Twas that way when I got here"

"I didn't start the flame war;
I can't understand a word you're saying
nor the game you're playing~"
Back to top
View user's profile Send private message
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



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

PostPosted: Thu Aug 06, 2009 3:15 pm    Post subject: Reply with quote

Ronin Catholic wrote:
A Superman reference and a Sailor Moon reference in the same sentence? That's just weird.


http://en.wiktionary.org/wiki/bizarro
http://en.wikipedia.org/wiki/Negaverse

Misreading two references into the same sentence? That's just weird.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Thu Aug 06, 2009 3:36 pm    Post subject: Reply with quote

Bizarro was definitely intended as a Superman reference. Negaverse was a Shael Riley reference :)

When I was about 4 years old, there was this fat guy with a bushy beard who lived directly across the street from my family's house. Sometimes I would be sitting looking out the screen door, and I would see him walk outside of his house wearing an Adam-West-style Batman costume. He would climb up into his offroad pickup truck, and drive away. This wasn't just around Halloween. He would do it other times too.

I was pretty sure that he was Bizzaro-Batman, and that his pickup truck was the Bizzaro-Batmobile.

It was cool to live across the street from a superhero, even if he did happen to be an evil alternate universe one.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Spoon Weaver




Joined: 18 Nov 2008
Posts: 421
Location: @home

PostPosted: Thu Aug 06, 2009 9:21 pm    Post subject: Reply with quote

James Paige wrote:
Bizarro was definitely intended as a Superman reference. Negaverse was a Shael Riley reference Happy

When I was about 4 years old, there was this fat guy with a bushy beard who lived directly across the street from my family's house. Sometimes I would be sitting looking out the screen door, and I would see him walk outside of his house wearing an Adam-West-style Batman costume. He would climb up into his offroad pickup truck, and drive away. This wasn't just around Halloween. He would do it other times too.

I was pretty sure that he was Bizzaro-Batman, and that his pickup truck was the Bizzaro-Batmobile.

It was cool to live across the street from a superhero, even if he did happen to be an evil alternate universe one.


The alternate universe superheros aren't always EVIL. Sometimes they're just weird. I'd think of your batman as more of a batman that lost wayne enterprises and is now a Middle Class guy but still feels the need to fight crime.

Also, a bat-pickup truck is totally awesome.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Fenrir-Lunaris
WUT




Joined: 03 Feb 2003
Posts: 1747

PostPosted: Fri Aug 07, 2009 8:08 am    Post subject: Reply with quote

James Paige wrote:
...there was this fat guy with a bushy beard who ...


If it's a goatee, you're definately seeing the mirror-universe version there. Except in instances where the regular universe version HAS a goatee.
Back to top
View user's profile Send private message
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Fri Aug 07, 2009 9:15 am    Post subject: Reply with quote

Fenrir-Lunaris wrote:
James Paige wrote:
...there was this fat guy with a bushy beard who ...


If it's a goatee, you're definately seeing the mirror-universe version there. Except in instances where the regular universe version HAS a goatee.


Nah. Not a goatee. An big bushy beard
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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