Hotkey question
Posted: Fri Jul 06, 2018 10:20 pm
[quote="crazyc"]Now you can set hotkeys similarly to how the input menu works. It doesn't let you set multiple mappings for one cheat (which wouldn't make much sense IMO) [strike]and doesn't currently give feedback when polling except the game freezes for a second[/strike]. Added a popmessage when to press the hotkey to set.[/quote]
Old, but awesome news! :) Which begs the question...how do I code a hotkey to for 2 different buttons to activate 2 different variable for the same cheat?
For Example:
https://i.imgur.com/qBv8lvb.png
https://i.imgur.com/QtSmSgi.png
This is the original cheat for mkla3:
<cheat desc="P1 Select Body Move Set">
<parameter>
<item value="0x00">Johnny Blade</item>
<item value="0x01">Kano</item>
<item value="0x02">Raiden</item>
<item value="0x03">Liu Kang</item>
<item value="0x04">Scorpion</item>
<item value="0x05">Sub-Zero</item>
<item value="0x06">Sonya Blade</item>
<item value="0x07">#Goro</item>
<item value="0x08">#Shang Tsung</item>
</parameter>
<script state="run">
<action>maincpu.pb@01014CF0=param</action>
<action>maincpu.pb@0101ABF0=param</action>
<action>maincpu.pb@0101D910=param</action>
<action>maincpu.pb@0101E030=param</action>
<action>maincpu.pb@0101E4F0=param</action>
<action>maincpu.pb@01020170=param</action>
<action>maincpu.pb@01021210=param</action>
<action>maincpu.pb@01022050=param</action>
</script>
</cheat>
I already tried creating a simplified version of the cheat and split it into 2 different Body Move Sets:
<cheat desc="P1 Reptile's Scorpion Body Move Set">
<parameter>
<item value="0x04">Scorpion</item>
</parameter>
<script state="run">
<action>maincpu.pb@0101E030=param</action>
</script>
</cheat>
<cheat desc="P1 Reptile's Sub-Zero Body Move Set">
<parameter>
<item value="0x05">Sub-Zero</item>
</parameter>
<script state="run">
<action>maincpu.pb@0101E4F0=param</action>
</script>
</cheat>
I assigned a different hotkey to each Body Move Set, but they don't activate in-game when i press the hotkeys. This was the only work-around I came up with. So, will have to come up with code to script to the mkla3_hotkeys.json file that will allow me to switch between 2 different Body Move Sets using hotkeys.
Old, but awesome news! :) Which begs the question...how do I code a hotkey to for 2 different buttons to activate 2 different variable for the same cheat?
For Example:
https://i.imgur.com/qBv8lvb.png
https://i.imgur.com/QtSmSgi.png
This is the original cheat for mkla3:
<cheat desc="P1 Select Body Move Set">
<parameter>
<item value="0x00">Johnny Blade</item>
<item value="0x01">Kano</item>
<item value="0x02">Raiden</item>
<item value="0x03">Liu Kang</item>
<item value="0x04">Scorpion</item>
<item value="0x05">Sub-Zero</item>
<item value="0x06">Sonya Blade</item>
<item value="0x07">#Goro</item>
<item value="0x08">#Shang Tsung</item>
</parameter>
<script state="run">
<action>maincpu.pb@01014CF0=param</action>
<action>maincpu.pb@0101ABF0=param</action>
<action>maincpu.pb@0101D910=param</action>
<action>maincpu.pb@0101E030=param</action>
<action>maincpu.pb@0101E4F0=param</action>
<action>maincpu.pb@01020170=param</action>
<action>maincpu.pb@01021210=param</action>
<action>maincpu.pb@01022050=param</action>
</script>
</cheat>
I already tried creating a simplified version of the cheat and split it into 2 different Body Move Sets:
<cheat desc="P1 Reptile's Scorpion Body Move Set">
<parameter>
<item value="0x04">Scorpion</item>
</parameter>
<script state="run">
<action>maincpu.pb@0101E030=param</action>
</script>
</cheat>
<cheat desc="P1 Reptile's Sub-Zero Body Move Set">
<parameter>
<item value="0x05">Sub-Zero</item>
</parameter>
<script state="run">
<action>maincpu.pb@0101E4F0=param</action>
</script>
</cheat>
I assigned a different hotkey to each Body Move Set, but they don't activate in-game when i press the hotkeys. This was the only work-around I came up with. So, will have to come up with code to script to the mkla3_hotkeys.json file that will allow me to switch between 2 different Body Move Sets using hotkeys.