06-06-2015, 05:48 AM
Theory One: Make "@subject" (the caster/active battler) an array, and all subsequent references to @subject loop through the contents over a single battler.
Problem with that I discover though, is that it could run into trouble down the line - I could end up with every characters in the combo set trying to use the skill, each one after another! Not quite what I want. (I'm not saying this does happen, but it probably would if I wasn't careful.)PHP Code:
<?php
@subject = []
for a in real_item.unity_conditions[:actors]
@subject.push($game_actors[a])
end
@subject.each {|a|
a.make_actions; a.current_action.set_skill(real_item.id)
}
Theory Two: Only have reference to an array of battlers in the conditions they're expected.
PHP Code:
<?php
@unity_subjects = []
for a in real_item.unity_conditions[:actors]
@unity_subjects.push($game_actors[a])
end
@subject.current_action.set_skill(real_item.id)