RPG Maker Forums

Good day,

I'm looking for something which I think should be relatively simple but I can't seem to figure out on my own.

The intended behaviour is $game_variables[56] = b.enemy_id

once that information is created, (each time the skill is used), a common event fires with conditional branches

if Variable 56 = 1 then Force Action actor[11] skill [50] on random target.

rinse and repeat a few hundred similar conditions with different force action skills for different enemy id's.

Unfortunately it isn't working as intended.

If I put $game_variables[56] = b.enemy_id in the damage formula, it damages the enemy exactly as per the enemy id (I did this to verify things) however the forced actions in the common event are not firing. but putting it in as a Script in the common event prior to the conditional branches yields an interpreter error even if I put it as:

 

class Game_Battler < Game_BattlerBase

$game_variables[56] = b.enemy_id

end

 

I've also tried defining a script call inside the Game_Battler class like so:

 

def sketch(a, B)

$game_variables[56] = b.enemy_id

end

 

and calling on a.sketch(a, B) or even just sketch(a, B)

 

Any ideas or help with this would be greatly appreciated.

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top