a = $data_system.party_members[0]
b = $storc
if a == b
$game_variables[99] = 1
end
a = $data_system.party_members[3]
b = $storc
if a == b
$game_variables[99] = 4
end
if @item.common_event_id > 0
$storc = @active_battler.id
Huh, that snippet looks a bit odd, such as using a global variable when you could be using a regular variable, and I can't seem to get it to work. Do you mind sharing the whole Scene_Item?
As for the target enemies issue, I can't see what's wrong with making "Last Target" your target. Is there something else you want to accomplish?
# If common event ID is valid
if @skill.common_event_id > 0
# Common event call reservation
$storb = @active_battler.id
$game_temp.common_event_id = @skill.common_event_id
# Play use skill SE
---------------
# If command event ID is valid
if @skill.common_event_id > 0
# Command event call reservation
$storb = @active_battler.id
$game_temp.common_event_id = @skill.common_event_id
# Switch to map screen
---------------------
# Set animation ID
@animation1_id = @skill.animation1_id
@animation2_id = @skill.animation2_id
# Set command event ID
$storb = @active_battler.id
@common_event_id = @skill.common_event_id
# Set target battlers
set_target_battlers(@skill.scope)
# Apply skill effect
Text: \tc \w[15]Extra Attack!
Force Action: Actor No. 1, Attack, Random, Execute Now
Text: \tc \w[15]Extra Attack!
Force Action: Actor No. 2, Attack, Random, Execute Now
Text: \tc \w[15]Extra Attack!
Force Action: Actor No. 3, Attack, Random, Execute Now
Text: \tc \w[15]Extra Attack!
Force Action: Actor No. 4, Attack, Random, Execute Now