I have a slight issue here. I am trying to do the thing that this script describes, however the “Story text” is not changing. Awaiting those awesome responses
//choices, string changes based on choicestate
public void positiveB()
{
negativestate--;
positivestate++;
ae.GameState = 1;
ae.StoryState += 1;
}//possible states are 3
public void negativeB()
{
ae.GameState = 2;
positivestate--;
negativestate++;
ae.StoryState += 1;
}//possible states are 3
public void neutralB()
{
ae.GameState = 3;
neutrallstate++;
positivestate--;
negativestate--;
ae.StoryState += 1;
}//possible states are 3
public void nullB()
{
nullstate++;
neutrallstate--;
ae.GameState = 4;
ae.StoryState += 1;
}//possible states are 3
and the “ae” script described in the code above where “StoryText” Lies:
void Udate()
{
if(StoryState == 1)
{
FirstPosition();
StoryText.text = fP;
}
else
{
if (StoryState == 2)
{
SecondPosition();
StoryText.text = sP;
}
else
{
if (StoryState == 2)
{
SecondPosition();
StoryText.text = sP;
}
}
}
}
//Game Position in order:
public void FirstPosition()
{
if(GameState == 1)
{
fP = "Positive";
}
if (GameState == 2)
{
fP = "Negative";
}
if (GameState == 3)
{
fP = "Neutral";
}
if (GameState == 4)
{
fP = "Null";
}
}//games First position, generated randomly by 4 separate states
Let me just include that I already tried removing the Else statements, changing the overall structure and such. Unfortunately I cannot show the code as a whole but please request any part of the code separately.