It looks like you're new here. If you want to get involved, click one of these buttons!
(set: $currentpassage to "Combat Scene") (link-goto: "$currentpassage") (print: $enemystats's Name) HP: (print: $enemystats's Health) (print: $enemystats's Description) Player damage dealt last turn: $totalplayerdamagedealt Enemy damage dealt last turn: $totalenemydamagedealt [Attack]<Attack| (click: ?Attack)[ (set: $totalplayerdamagedealt to 0) (set: $totalplayerdamagedealt to it + (random: $playerstats's weaponmindamage, $playerstats's weaponmaxdamage) + $playerstats's Strength/2) (set: $enemystats's Health to it - $totalplayerdamagedealt - $enemystats's defense) (goto: "$currentpassage")]
Comments
1. Setup the required variables (in a passage) before the Fight Scene passage, an idea place to do this is in your story's startup tagged passage which is processed before the story starts.
note: Because you did not provided an example of the initial values of your variables I had to make a guess what those values may be.
2. The Fight Scene passage, or a brief example of a starting point of one.
You would need to add things like: the enemy's attack logic; what happens when someone dies; and a link to exit the passage.
Now all I need to do is keep researching how to add a GUI of some sort