Parallel Worlds - Entrance change on condition

View previous topic View next topic Go down

Parallel Worlds - Entrance change on condition

Post by Euclid on Sat 20 Jul 2013 - 8:11

Instead of finding the spot to insert code again, let me put down what i did in PW. (entrance to the dungeon on the sky isles changes when you're in first quest/second quest)

The place to insert the code is the following:
$1B/BD5F BF 73 BB 1B LDA $1BBB73,x[$1B:BBA7] A:0034 X:0034 Y:091C P:envMxdizc
$1B/BD63 8D 0E 01 STA $010E [$00:010E] A:0033 X:0034 Y:091C P:envMxdizc

$10E contains the ENTRANCE number (see RAM map by MathOnNapkins) which link will enter in. If you branch from that bit of code and do something like the following:

If entrance is (entrance you want to change) and (condition) then
- store new entrance number into $010E
else
- STA $010E

you can change what entrance link goes to.
avatar
Euclid



Since : 2012-06-21

Back to top Go down

Re: Parallel Worlds - Entrance change on condition

Post by XaserLE on Sat 20 Jul 2013 - 9:07

Thank you, saved :-).
I always thought you changed the room when going through an entrance and not changed the entrance when going to this overworld area that holds the entrance you want to change, interesting.

XaserLE



Since : 2013-01-22

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum