Best method to convert number variable to text variable
Posted: Thu Mar 18, 2021 12:23 pm
Hi again! I promise one day I'll be able to go through a session without needing to ask a question
I have a points system set up in the variables that basically tracks how much another character likes you. It starts at 50 for neutral and you can gain or lose points as you interact with them.
I have a 'Quest' for each character the player can view that tells them some information about them and updates with new information. I currently have a line that displays the relationship in the points value as Relationship: 10 by using the Lua command [var=Charactername_Points].
I was wondering what the best method would be to convert that to be able to say Relationship: Like/hated/loved, etc.
Is there a way to easily do that through the variable editor in Dialogue system, such as creating a string variable with an if/then value?
Or do I need to have some kind of scrip that says if variable ["Charactername_Points"] >= 51 and variable ["Charactername_Points"] <= 75 set Variable["Relationship"] = Liked (etc) and attach that somewhere to the dialogue manager?
Thank you in advance <3
I have a points system set up in the variables that basically tracks how much another character likes you. It starts at 50 for neutral and you can gain or lose points as you interact with them.
I have a 'Quest' for each character the player can view that tells them some information about them and updates with new information. I currently have a line that displays the relationship in the points value as Relationship: 10 by using the Lua command [var=Charactername_Points].
I was wondering what the best method would be to convert that to be able to say Relationship: Like/hated/loved, etc.
Is there a way to easily do that through the variable editor in Dialogue system, such as creating a string variable with an if/then value?
Or do I need to have some kind of scrip that says if variable ["Charactername_Points"] >= 51 and variable ["Charactername_Points"] <= 75 set Variable["Relationship"] = Liked (etc) and attach that somewhere to the dialogue manager?
Thank you in advance <3