View previous topic :: View next topic |
Author |
Message |
Master K Ex-Akatsuki Masked Ninja

Joined: 11 Jun 2011 Posts: 57 Location: Everywhere and Nowhere. Muahaha!
|
Posted: Sun Jun 19, 2011 8:58 am Post subject: Name that hero |
|
|
What I want to do, with plotscripting, is rename a hero who is not in the party or reserves, and for the renaming to stay.
I'll give you the example from my game. The hero asks someone for the name of the other protagonist. Right before the woman gives you the name, I want the Name that hero screen to pop up, and then after it the name is shown in the womans next text box, and the re-name stays that way. |
|
Back to top |
|
 |
mswguest Guest
|
Posted: Sun Jun 19, 2011 1:13 pm Post subject: |
|
|
The best way I can think of to do this would be to have a script that shows the textbox, then adds the hero to the party and at the same time gives him/her a blank walkabout picture (so he/she doesn't appear onscreen), thus allowing the game to handle renaming normally, then after the textbox is done remove the hero and restore the walkabout picture. |
|
Back to top |
|
 |
Master K Ex-Akatsuki Masked Ninja

Joined: 11 Jun 2011 Posts: 57 Location: Everywhere and Nowhere. Muahaha!
|
Posted: Sun Jun 19, 2011 2:27 pm Post subject: |
|
|
Ok, thats what I thought. And besides, I don't have caterpillar party on, so she won't show up.
Err! Wrong. It didn't work. The rename stuck for about one text box (The one where the remove conditional was on) and then the next one with her name went blank. |
|
Back to top |
|
 |
mswguest Guest
|
Posted: Sun Jun 19, 2011 2:56 pm Post subject: |
|
|
When you remove her, don't delete her. Just swap her out of the current party and lock her (although I don't think this should matter... how are you referring to her in your text boxes?).
You could always use a string to accomplish this as well. But I'm interested in why this is failing with our current setup. |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Mon Jun 20, 2011 8:22 am Post subject: |
|
|
Yes, swapping her out of the active party and locking her is the right solution.
The codes for embedding hero names into text boxes only work if the hero is in the party.
In fact, the only way to use a hero name without adding the hero to the party is to copy it into a string using the "get hero name" command. |
|
Back to top |
|
 |
|