Petition Details and Chat

Petition ID 668: GLOBAL memory units don't work properly
Submitted Sat, 14 Apr 12 09:35:09 +0000

The value in the unit seems to reset itself?

I made a program which works perfectly for my character, but once I put GLOBAL: in front of the memory unit it stops working. Removing GLOBAL: and the program works again.

Debugging:

Running program ID 301, 'Rifle present'
--Row 1 will pass if any Contrivance Passes
----Contrivance: Memory Part Equal at row 1, column 1 is being checked, and says: Currently set to pass if digit 1 in GLOBAL: Plasma gun is exactly 1
----Success at row 1 column 1
--Row 1 passed OK

--Row 2 will pass if all Contrivances Pass
----Contraption: Show Page at row 2, column 1 is being checked, and says: Currently set to show page 'Armoury (Rifle) ', pageid 181
You are in the Watch's weapon storage. Along one side of the room you see weapons of all sorts and types. Placed in racks they range from chainsaws, crossbows, clubs, axes, ancient M4 carbines to island made plasma pistols and sun guns.
The eye catching piece however is a pre-EMP High-Power Plasma Rifle, safely locked away in a Perspex casing.

Besides the weapons there is a wide selection of armours present. Simple Kevlar vests, full riot gear, power-enhanced combat armour to forcefield generators are standing in racks along the other wall.

You can't help but grin as you feel like the proverbial kid in the candystore.

----Success at row 2 column 1
----Contraption: Add Page Access at row 2, column 2 is being checked, and says: Currently set to link to page 'Examine Plasma Rifle ', pageid 183
----Success at row 2 column 2
----Contrivance: Player Has Memento at row 2, column 3 is being checked, and says: Currently set to trigger if the player has the Memento called 'Small key'
----Success at row 2 column 3
--Row 2 passed OK
--Row 3 will pass if any Contrivance Passes
----Contraption: Add Page Access at row 3, column 3 is being checked, and says: Currently set to link to page 'Take Plasma Rifle', pageid 182
----Success at row 3 column 3
--Row 3 passed OK

Running program ID 2414, 'Rifle absent'
--Row 1 will pass if any Contrivance Passes
----Contrivance: Memory Part Equal at row 1, column 1 is being checked, and says: Currently set to pass if digit 1 in GLOBAL: Plasma gun is exactly 0
----Success at row 1 column 1
--Row 1 passed OK

--Row 2 will pass if all Contrivances Pass
----Contraption: Show Page at row 2, column 1 is being checked, and says: Currently set to show page 'Armoury (Empty) ', pageid 184
You're in the Watch's weapon storage. Along one side of the room you see weapons of all sorts and types. Placed in racks they range from chainsaws, crossbows, clubs, axes, ancient M4 carbines to island made plasma pistols and sun guns.
In the centre of the room, probably meant as eye catching piece is a Perspex showcasing. It is empty however.

Besides the weapons there is a wide selection of armours present. Simple Kevlar vests, full riot gear, power-enhanced combat armour to forcefield generators are standing in racks along the other wall.

You can't help but grin as you feel like the proverbial kid in the candystore.

----Success at row 2 column 1
----Contraption: Hide Page Link at row 2, column 2 is being checked, and says: Currently set to block page 'Examine Plasma Rifle ', pageid 183
----Success at row 2 column 2
----Contrivance: Player Has Memento at row 2, column 3 is being checked, and says: Currently set to trigger if the player has the Memento called 'Small key'
----Success at row 2 column 3
--Row 2 passed OK
--Row 3 will pass if any Contrivance Passes
----Contraption: Add Page Access at row 3, column 3 is being checked, and says: Currently set to link to page 'Store Plasma Rifle', pageid 185
----Success at row 3 column 3
--Row 3 passed OK

See how both programs pass even though the GLOBAL: Plasma gun check has 2 different values?
And as I said, removing GLOBAL: from the memory makes that the programs work as intended

Back to the List of Petitions

You have to be logged in to chat.


Creative Commons License This work is licensed under a Creative Commons License.
Game Design and Code: Copyright © 2002-2005, Eric Stevens & JT Traub, © 2006-2007, Dragonprime Development Team, 2008-onwards © Improbable Enterprises
Privacy Policy