Hi I apologise if this has been asked before, I have seen a couple of threads where they can call an actors class by using a combination of Conditional Branches and Control Variables, but I dont quite understand it and I dont think they fit my purpose.
To start explaining:
I have a Conditional Branch which leads into a choice of Martial, Caster, Hybrid and from there a sub choice in each of three classes.
For example Martial > Paladin, Barbarian, Fighter.
When [Fighter] as the example; the following are triggered;
@>Change Actor Class: [NAME], [Fighter]
@>Control Variables: [7:Class] = 1
@>Text: -,-, Dark, Bottom
: : There can be only one.
: : You are \N[1] the \v[7]
Now naturally this changes the active actor, to the fighter class (in my case this is 1st in the list), then sets Variable 7 to 1.
The text box correctly outputs as You are [NAME] the 1.
I am curious as to how I can get that 1 to be looked up against a list and output the correct class name. ie instead of outputting
You are [NAME] the 1, it out puts [NAME] the [Fighter].
I am trying to do this via variables as this is primarily a practice route for me to see how to convert variables into strings etc,
However doing it this way to me vs using a script to call on the actors class directly, means I can modify the variable for RNG purposes. (Was thinking I could have an NPC incorrectly call someone the wrong class by using the Variable 7 + Rand(5))
I hope this is clear enough to help me further?
To start explaining:
I have a Conditional Branch which leads into a choice of Martial, Caster, Hybrid and from there a sub choice in each of three classes.
For example Martial > Paladin, Barbarian, Fighter.
When [Fighter] as the example; the following are triggered;
@>Change Actor Class: [NAME], [Fighter]
@>Control Variables: [7:Class] = 1
@>Text: -,-, Dark, Bottom
: : There can be only one.
: : You are \N[1] the \v[7]
Now naturally this changes the active actor, to the fighter class (in my case this is 1st in the list), then sets Variable 7 to 1.
The text box correctly outputs as You are [NAME] the 1.
I am curious as to how I can get that 1 to be looked up against a list and output the correct class name. ie instead of outputting
You are [NAME] the 1, it out puts [NAME] the [Fighter].
I am trying to do this via variables as this is primarily a practice route for me to see how to convert variables into strings etc,
However doing it this way to me vs using a script to call on the actors class directly, means I can modify the variable for RNG purposes. (Was thinking I could have an NPC incorrectly call someone the wrong class by using the Variable 7 + Rand(5))
I hope this is clear enough to help me further?