View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Wed Aug 05, 2009 11:30 am Post subject: respawning npcs |
|
|
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
|
Posted: Wed Aug 05, 2009 11:43 am Post subject: |
|
|
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
|
Posted: Wed Aug 05, 2009 11:54 am Post subject: |
|
|
yea ill try it |
|
Back to top |
|
 |
binoal

Joined: 20 Jun 2009 Posts: 123 Location: My Own Little World
|
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Aug 05, 2009 1:17 pm Post subject: |
|
|
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 |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Aug 05, 2009 5:05 pm Post subject: |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu Aug 06, 2009 9:22 am Post subject: |
|
|
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 |
|
 |
Ronin Catholic Deadliest of Fairies

Joined: 23 Jul 2007 Posts: 530 Location: My Girlfriend
|
Posted: Thu Aug 06, 2009 1:31 pm Post subject: |
|
|
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 |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu Aug 06, 2009 3:36 pm Post subject: |
|
|
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 |
|
 |
Spoon Weaver

Joined: 18 Nov 2008 Posts: 421 Location: @home
|
Posted: Thu Aug 06, 2009 9:21 pm Post subject: |
|
|
James Paige wrote: | 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. |
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 |
|
 |
Fenrir-Lunaris WUT

Joined: 03 Feb 2003 Posts: 1747
|
Posted: Fri Aug 07, 2009 8:08 am Post subject: |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Fri Aug 07, 2009 9:15 am Post subject: |
|
|
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 |
|
 |
|