MV Help with TMJumpAction yay

Hey all!

I’m trying to figure out how to get my game to recognize if an enemy event is being carried and when an enemy event is being thrown using conditional branches, switches, or script. It’s been days of me searching the internet, plugging random lines from the .js file into the event editor and praying something would stick (can you tell I’m great at coding 😤...😢), but I've "somehow" not made much progress. Hope one of you wouldn’t mind taking a look at this with me since the plugin’s creator has moved on from the RPG Maker scene!

Details:

I’m using the TMJumpAction plugin by tomoaky that adds a pickup and throw function with events you specify as being enemies using note tags. I love this plugin to bits, but it doesn’t have a graphic change option when your character jumps, attacks, etc. I decided to challenge myself and attempt to make it happen. So far, I’ve managed to get an animation to play when the player dashes and for the graphic to change when you attack using a common event that triggers with a press of the specified key.

However… since the attack key is also used to pick up and hurl enemies, the wrong graphic change is happening there. Trying to reconfigure the plugin to have the pickup/throw key be something other than the attack key would probably result in my head exploding, so I thought an easier alternative would be to trigger an event/switch if an enemy is being picked up or not. Could this be done by adding something like:

Spoiler: switch
$gameSwitches.setValue(20,true);



in a line under where the enemy is being picked up and then turning that switch off when it isn’t? I’m just not sure where to put it. Another thing I thought might work would be to plug script here:


Spoiler: Image
conbranch.PNG


that would tell the game that an enemy is/isn’t being carried, etc. Any ideas on which lines would work here? Using Ctrl+F to find “carry” and “hurl” in the plugin makes me think lines 2190-2200 could be important.

I wish I could be more helpful in explaining this, and I know this is a pretty big (gigantic) plugin to wade through, but if you have the time to help me figure this out, I would appreciate it! :LZSsmile:

Edit: Link to the demo project
You should be able to use the isBattler() function to differentiate enemy events from object ones.
Hi Trihan, thank you for replying! Would you mind explaining how to use that function in an event? I'm still pretty new to coding:LZYdizzy:
Hi Trihan, thank you for replying! Would you mind explaining how to use that function in an event? I'm still pretty new to coding:LZYdizzy:
Sure! Give me a sec and I'll fire it up and edit with the script you'd need for a conditional branch.
Ah, I got it working! The bit of code to turn on the switch I inserted into the js file was the way to go--it was the common event I made that checks for the switch being on that was incorrect. This is why I'm hesitant to post threads 😩 @Trihan thank you so much for looking into this for me! I'll be double-checking my work before posting again TT
Gahh, sorry. I'd actually forgotten to do this at the time. XD glad you got it sorted!
I made a platform beta-game using that scirpt (see my signature) .. but my "final feedback" is... don't use rpgmaker to make a platform game XD use Construct 2 or 3. You will have a lot of iussues with the collisions and the controller
Honestly, I'd give the same advice to someone thinking about making a platformer using RM 🤣It's taken a ton of messing around with the plugin, switches, and eventing to make what would probably take just a few clicks in another engine that's designed for platforming action. I'm making decent progress so far, though, and you're proof (not to mention LISA and some others) that it can be done! 🙂

Also I gave Into The Wild a spin on indiexpo--that's one pretty game you've made!
Honestly, I'd give the same advice to someone thinking about making a platformer using RM 🤣It's taken a ton of messing around with the plugin, switches, and eventing to make what would probably take just a few clicks in another engine that's designed for platforming action. I'm making decent progress so far, though, and you're proof (not to mention LISA and some others) that it can be done! 🙂

Also I gave Into The Wild a spin on indiexpo--that's one pretty game you've made!

hahaha. Thanks but it is not so pretty! It was just an experiment!
Did you upload also your work? Can you show me?
Yeah! I just uploaded a new version of the test demo here:

https://ladybug-games.itch.io/dreamtrotter

Original thread: https://forums.rpgmakerweb.com/threads/help-with-tmjumpaction-yay.144839/