A little more ruby help

I have been trying to look through old threads to understand how to call a common event in the ruby script.

I am stuck here ... see I found this

$game_temp.reserve_common_event(ID)

I swapped it for ...

(Scene_Battle L339)
select_enemy_selection

Because I am trying to swap the default attack with a common event.
I changed the (ID) to (39) to ref the #39 common event.

Screenshot 2022-04-07 at 19.49.10.png


RIGHT I thought fantastic problem solved! But I dont get an error my game freazes.... Please HELP
trying to swap the default attack with a common event.
what for, exactly?
Okay, I recommend this script instead.
what for, exactly?

I want to remove the default targeting options menu this.. I dont want to see this box. VVV

Screenshot 2022-04-07 at 16.39.30.png


Because I already have another window for that... I want to rebuild the combat system in common comands... this is one of the last things I need to remove.

Okay, I recommend this script instead.

I dont want to add things, I want to remove them...
this is part of the function name of the function you used.
ever thought about why?

that function does NOT call the common event directly.
it places the common event into a list of common events to be executed when the engine has time for it ("reserve time for execution")

You CANNOT replace a skill with a common event, because the common event cannot be executed at the same time as the skill.
by default common events are executed at the end of the battleturn, long after all the skills have been processed.
this is part of the function name of the function you used.
ever thought about why?

that function does NOT call the common event directly.
it places the common event into a list of common events to be executed when the engine has time for it ("reserve time for execution")

You CANNOT replace a skill with a common event, because the common event cannot be executed at the same time as the skill.
by default common events are executed at the end of the battleturn, long after all the skills have been processed.

Hmmmm Okay this is interesting so how do I just remove the requirement to target a mob. it should call anyway because I have it listed in effects of the skill(1) effectively replacing the attack with my own custom one. But I want to get rid of that damn box! lol
Screenshot 2022-04-07 at 17.19.10.png
how do I just remove the requirement to target a mob
THAT is the question you should have asked.

look into the action object and how it receives it's information.
an action requires an initiator battler, a target or group of targets, a timing offset, and the action to be used (the skill, item, or effect itself)

the box, is the input for the target.
now, if there was another way to send the value to the action object....? (hint hint wink wink)
how do you test the battle and the skill?

I think that is where you made your mistakes
I have already set up an alternate battle system using common events the target menu box is completely superfluous! I dont under the hint you gave gstv87. I am new to coding, and even newer to ruby... I figure removing something like a box is just one line of code... I know about select_enemy_selection (in Scene_Battle on L339) but I remove this and my game freezes when I attack.

I have also noticed if I change the scope to 'none' or 'all' (both of which wouldn't need a target selection menu) the box still pops up?! I am growing to hate that box fast!
how do you test the battle and the skill?

I think that is where you made your mistakes

I am testing it in game...
OH WAIT no I got it...
I am testing it in game...
I would like a few more details like if you start a new game or load a savefile, if it is an evented or a random battle and so on.
I would like a few more details like if you start a new game or load a savefile, if it is an evented or a random battle and so on.

Don't worry I got it... but my game will be for sale soonish....
One last thing I need help with is removing the status messaages at the top of any battle, like these...

Screenshot 2022-04-07 at 23.19.45.png


I want these gone, they are superfluous as well. Like I said above I have a battle system already, givining me wayyy more design choice when it comes to moves and damage calculations.

Original thread: https://forums.rpgmakerweb.com/threads/a-little-more-ruby-help.146524/