Pyrdacor / Ambermoon

Resources for the incredible Amiga game Ambermoon
90 stars 8 forks source link

Antique Area Navstone machine issue #122

Open Pyrdacor opened 1 month ago

Pyrdacor commented 1 month ago

When you use the navstone machine and approach the output where you get the navstones. If you leave the loot screen without picking up the navstone, it will still be gone. This is because all the events are chained to the chest event without checking if the item was removed.

+------------------------------------------------------------------------------+
Enter command: chain e
+------------------------------------------------------------------------------+

ID | Description
---|---------------------------------------------------------------------------
44 | Condition: TypeOfCondition=GlobalVariable, Value=1, ObjectIndex=206,
   | ContinueIfFalseWithMapEventIndex=0x0050
45 | Chest: LockpickingChanceReduction=0, Flags=None, TextIndex=10,
   | ChestIndex=211, LootFlags=CloseWhenEmpty | NoAutoRemove, KeyIndex=0,
   | UnlockFailedEventIndex=0xffff
46 | Action: TypeOfAction=SetGlobalVariable, Value=0, ObjectIndex=205
47 | Action: TypeOfAction=SetGlobalVariable, Value=0, ObjectIndex=206
48 | Action: TypeOfAction=SetGlobalVariable, Value=0, ObjectIndex=207
49 | Action: TypeOfAction=SetGlobalVariable, Value=0, ObjectIndex=208
4a | Action: TypeOfAction=SetGlobalVariable, Value=0, ObjectIndex=209
4b | Action: TypeOfAction=SetEventBit, Value=0, ObjectIndex=23564
4c | Action: TypeOfAction=SetEventBit, Value=1, ObjectIndex=23565
4d | ChangeTile: X=0, Y=0, FrontTileIndex=33, MapIndex=0
4e | ChangeTile: X=15, Y=12, FrontTileIndex=38, MapIndex=0
4f | Action: TypeOfAction=SetEventBit, Value=0, ObjectIndex=23563

Between event 45 and 46 there should be a condition event with condition type "last event result = 1".

Pyrdacor commented 1 month ago

As this is only for one navstone type, the new events must also be chained to the parts of the chain for the other two navstone types.