I noticed that someone had made a request for Elevator Action invincibility cheats. So I figured I'd give this a shot to get me back.
Annoyingly I've spotted jman has posted some cheats for it in the WIP section...#@@@@#! Looking at jman's cheat though they missed out on stopping the falling happening and they have used routines for the elevator crushing - hopefully I've not missed something silly and haven't over simplified the cheat?
I've made the cheat in the way you suggested with the temp variables (thanks for the quick tool).
TFAN help on the bullet check was limited, it did drop me near the address but I ended up either giving everything invincibility to bullets or making the bullets keep going. So I cheated a little and used part of the code that the No Hit DIP Switch. It worked fine with the other ways of dieing, straight out of the park!
Works for elevator, elevatora & elevatorb I believe.
Code: Select all
<cheat desc="Invincibility">
<script state="on">
<action>temp0 =maincpu.mb@08BB</action>
<action>temp1 =maincpu.mb@3805</action>
<action>temp2 =maincpu.mb@4A8B</action>
<action>temp3 =maincpu.mb@4975</action>
<action>temp4 =maincpu.mb@49A3</action>
</script>
<script state="run">
<action>maincpu.mb@08BB=C9</action> <!-- This Program Code cheat was made by AmigaFan, 'No Hit' DIP bullet check -->
<action>maincpu.mb@3805=C9</action> <!-- Elevator Down -->
<action>maincpu.mb@4A8B=C9</action> <!-- Elevator Up -->
<action>maincpu.mb@4975=C3</action> <!-- Don't Allow Fall to Death - left walking -->
<action>maincpu.mb@49A3=C3</action> <!-- Don't Allow Fall to Death - right walking -->
</script>
<script state="off">
<action>maincpu.mb@08BB=temp0 </action>
<action>maincpu.mb@3805=temp1 </action>
<action>maincpu.mb@4A8B=temp2 </action>
<action>maincpu.mb@4975=temp3 </action>
<action>maincpu.mb@49A3=temp4 </action>
</script>
</cheat>