IcyCool
First Post
IcyCool said:if hitpoint = 0 and action = move then EndRound
else
if hitpoint > 0 and action = standard then EndRound
else
hitpoint = hitpoint - 1
end if
A simple difference, but an important difference. And if you were to use either your pseudo-code, or mine, you would get a result in-line with what KarinsDad has been arguing.![]()
I just noticed that this particular pseudo-code block does indeed produce the results you were looking for, RuminDange, provided one assumes that the hitpoint variable refers to your current hitpoints, and it is not applied until after you take the action. So I withdraw the comment that you get a result in-line with KarinsDad's, provided the exception I listed above applies. The code, however, incorrectly portrays the paragraph.
Perhaps the following block would be better:
Code:
if hitpoints = 0 then
if action = standard then
[i]do standard action[/i]
hitpoints = hitpoints - 1
End Round
else
[i]do move or free action, or do nothing[/i]
End Round
end if
else if hitpoints > 0 then
[i]do action[/i]
EndRound
else
hitpoints = hitpoints - 1
EndRound
end if