Page 1 of 1

Bug Reporting Thread 2

Posted: Tue Jul 28, 2015 8:10 pm
by Admiral Ackguh
I tried to add to the original Bug Reporting Thread, but the web site crashed when I pressed Reply. The admins can move any messages here to the original thread once they fix the problem.

[BUG] SUCCESS variable checking

Posted: Tue Jul 28, 2015 8:22 pm
by Admiral Ackguh
One of the uses of the SUCCESS variable is to block the player from traversing a portal, by using the portal's passing action macro to set SUCCESS to 0.

If the player is unburdened, everything works as expected.

If the player is burdened: The game engine runs the step macro one or more times after the portal macro, and sets SUCCESS to 1 before each step macro call, and checks SUCCESS after each call.

That means that a burdened player can use portals that should be blocked.

Solution: Obviously, the step macros must change SUCCESS in the same way as the portal macros. The developer could duplicate portal macro code, or set aside a variable for "global success". If so, Portal macros would need to set this variable the same way as SUCCESS, and step macros would set SUCCESS to this variable.