There would be an easier way to do this :
For the 3rd image :
Code:
♦ If party has left atrium
♦ If party has right atrium
left atrium -1
right atrium -1
heart + 1
♦ else
text : You need a second part
♦ end
♦ end
There is no need to make it harder than needed, it reads :
If the party has a left part and if the party has a right part, take away 1 left and 1 right and give 1 heart
else, you need a second part.
You could potentially write it like this, if that's easier to understand :
Code:
♦ Control variables #0001 Atrium = 0
♦ If party has left atrium
♦ Control variables #0001 Atrium += 1
♦ End
♦ If party has right atrium
♦ Control variables #0001 Atrium += 1
♦ End
♦ If variables #0001 Atrium = 2
♦ Heart + 1
♦ left atrium -1
♦ right atrium -1
♦ else if variables #0001 Atrium = 1
♦ Text : you need a second part
♦ End
♦ Exit Event Processing
The second image should work fine, it checks if party has an item named Heart, and if it does pops a message
However, since this is a common event, it needs a trigger
You probably run it with trigger set to none, you should use a switch to trigger its usage or directly call that event where needed :
Code:
♦ If party has left atrium
♦ If party has right atrium
left atrium -1
right atrium -1
heart + 1
♦ Common event #0007
♦ else
text : You need a second part
♦ end
♦ end
The first image is a bit confusing, but what you probably try to do is :
Code:
♦ If Party has left Atrium
♦ If Party has left Atrium
♦ Text : So now I have two left...
♦ Exit Event Processing
♦ End
♦ End
The same can be done for the right
Code:
♦ If Party has right Atrium
♦ If Party has right Atrium
♦ Text : So now I have two right...
♦ Exit Event Processing
♦ End
♦ End
You need to understand common events are not events that run automatically, you need to either call them in your event (map event), or you need to set a trigger (with a switch) that runs in parrallel or automatically.
Parrallel means just what it means, it will run the common event in the background (meaning all the rest will still work)
Automatic means all the rest will stop working while this event is running (meaning you won't be able to move during the process, so make sure you build the automatic event in a way it can exit when finished)