OK!
First of all, there's a new version with some fixes that you need to get this working.
Latest version of AST for YANFLY
Secondly, a compatibility script for Pets and Summons (Compatibility) v1.6! Add it in a separate script page after AST and the pets script.
With this, any pets will be included when you ASTinclude:friend (if actor) or ASTincludeLopponent (if enemy) There's also a new command!
ASTinclude😛ets
which only includes the pets!
Seems to work on my end. Please let me know if it works for you!
First of all, there's a new version with some fixes that you need to get this working.
Latest version of AST for YANFLY
Secondly, a compatibility script for Pets and Summons (Compatibility) v1.6! Add it in a separate script page after AST and the pets script.
With this, any pets will be included when you ASTinclude:friend (if actor) or ASTincludeLopponent (if enemy) There's also a new command!
ASTinclude😛ets
which only includes the pets!
Seems to work on my end. Please let me know if it works for you!
Code:
class Advanced_Targeting def basic_friend if @targetside=="friend" push_unit(@friends.members) push_unit($game_party.pets) if @actor.actor? end end def basic_opponent if @targetside=="enemy" push_unit(@opponents.members) push_unit($game_party.pets) if @actor.enemy? end end #-------------------------------------------------------------------------- # * advanced_choice # processes the more complex AST commands #-------------------------------------------------------------------------- def advanced_choice clear @startat = 0 @globalstartat = 0 forcedaction = -1 killafter = 0 randomise = false repeats = false randomnum = 0 @reason = "This creature is untargetable" puts "*** starting skill rules evaluation ***" if @verbose == true @action.note.split( /\n */ ).each do |line| puts line if @verbose == true bits=line.split( /: */ ) bits[1] = "" if bits.length==1 bits[0] = bits[0].chomp bits[1] = bits[1].chomp case when bits[0]=="ASTinclude" if bits[1]=="friend" push_unit(@friends.members) push_unit($game_party.pets) if @actor.actor? end if bits[1]=="opponent" push_unit(@opponents.members) push_unit($game_party.pets) if @actor.enemy? end push_unit($game_party.members) if bits[1]=="party" push_unit($game_troop.members) if bits[1]=="troop" push_unit($game_party.pets) if bits[1]=="pets" when bits[0]=="ASTremove" evaluate_units(bits[1]) when bits[0]=="ASTpreserve" @startat = @targets.length when bits[0]=="ASTpreserveglobal" @globalstartat = @targets.length when bits[0]=="ASTforceaction" forcedaction = bits[1].to_i when bits[0]=="ASTkillafter" killafter = 1 when bits[0]=="ASTremovecaster" evaluate_units("a==b") when bits[0]=="ASTrandom" @targets = randomise(bits[1].to_i) if @executing == true when bits[0]=="ASTstart" @reason = bits[1] when bits[0]=="ASTreason" @reason = bits[1] end end $Targeting_Rules.puts_rules if @verbose == true @startat = @globalstartat process_targeting_rules @targets = @targets.uniq puts "--------------" if @verbose == true puts "VIABLE TARGETS" if @verbose == true @targets.each do |member| member.ASTkillafter(killafter) if @executing == true member.ASTset_forced_action(forcedaction) if @executing == true puts member.name + " forced action " + member.AST_forced_action.to_s if @verbose == true end puts "--------------" if @verbose == true end end class Targeting_Rules def reset_members @members = [] @members = $game_troop.members + $game_party.members + $game_party.pets @members = @members.uniq end end