I've been using
this post as a guide to set up a way to rename combatants whenever you "capture" them and add them to your active group.
Here's what I've got right now:
Whatever I type in the input field seems to have no effect, as the name of the combatant before continues to be its name after this event. If I use the Set Combatant Name node to change the name to a set value, it works fine, so that leads me to believe something isn't correct with my setup or the value input dialogue node.
Any idea where I've gone wrong? I've tried quite a few things and can't seem to get it right.
Thank you!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Here's the setting for Set Combatant Name:
And here's the Value Input Dialogue:
Let me if I can provide anything else that'd help you help me!
Is the name you input in the dialogue stored in the global variable afterwards? You can check that by selecting the _ORK game object in the scene (DontDestroyOnLoad objects), which will list all global variables in the inspector.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I have had an issue with global variables not working in a battle event before as well... Any ideas on what's going wrong?
I just did a quick test (although without capturing a combatant) with the same value input and name change setup and that worked fine.
Do you have any other things (e.g. global events or custom scripts) using the newName global variable?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
This might not be related, but I noticed when I type into the value input dialogue, certain input keys still trigger. Like, if I type "p" -- my input key for pause -- the game will pause. This happens even when I check "UI Blocks Input" in the Base/Control > Input Keys > Key Settings
Could you send me a small Unity test project with your setup? You can delete the Library folder in the Unity project before sending it to reduce the file size, e.g. zip it up and send me the link via PN or to contact@orkframework.com
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!