- Joined
- Jan 15, 2013
- Messages
- 31
- Reaction score
- 6
- First Language
- English, French
- Primarily Uses
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,
$game_variables[56] = b.enemy_id
end
and calling on a.sketch(a,
or even just sketch(a, 
Any ideas or help with this would be greatly appreciated.
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,
$game_variables[56] = b.enemy_id
end
and calling on a.sketch(a,
Any ideas or help with this would be greatly appreciated.






