Here is what I'm trying to do: During my game there is an ongoing war between two armies (simplified to good guys vs bad guys for this). At multiple points the two armies clash and I want to keep a track of each battle's progress on the overall war.
So:
Battle Result = good guys strength - bad guys strength.
Then, because I'm tracking the battles throughout the game it be:
Battle Result + Current War Status = New War Status (that part is easy and I understand, just putting it in there to show the progression)
If it isn't clear, the player's actions will affect the values of each side, which is why I just can't predetermine the results.
My current set up works, but is less than ideal, and looks like this:
Conditional Branch
If good guys > bad guys
+1 to War Status
If good guys > (bad guys +5)
+2 to War Status
If good guys > (bad+10)
+3 to War Status
etc
I suppose that I could theoretically add a conditional branch for every possibility, but I'm anticipating a lot of number fluctuation. Having the battles give out results in 'groups' (defeat, minor victory, major victory, etc) will work, but ideally I could just have the result calculated by the difference of the variables.
I apologize if I missed the answer for this in any of the variables tutorials.
Thanks for any help!
So:
Battle Result = good guys strength - bad guys strength.
Then, because I'm tracking the battles throughout the game it be:
Battle Result + Current War Status = New War Status (that part is easy and I understand, just putting it in there to show the progression)
If it isn't clear, the player's actions will affect the values of each side, which is why I just can't predetermine the results.
My current set up works, but is less than ideal, and looks like this:
Conditional Branch
If good guys > bad guys
+1 to War Status
If good guys > (bad guys +5)
+2 to War Status
If good guys > (bad+10)
+3 to War Status
etc
I suppose that I could theoretically add a conditional branch for every possibility, but I'm anticipating a lot of number fluctuation. Having the battles give out results in 'groups' (defeat, minor victory, major victory, etc) will work, but ideally I could just have the result calculated by the difference of the variables.
I apologize if I missed the answer for this in any of the variables tutorials.
Thanks for any help!