Hey! If you're up to using Yanfly Lunatic Objects, I have some similar script snippets you're more than welcome to steal. They're virtually identical to the above, but will give you more space/granularity than the damage field.
Code:
when /MUTUALISM/i
gas_buffs = []; tar_buffs = []
for state in target.states
tar_buffs.push(state.id) if state.priority <= 50
end
for state in user.states
gas_buffs.push(state.id) if state.priority <= 50
end
for state_id in tar_buffs
user.add_state(state_id) unless user.state?(state_id)
end
for state_id in gas_buffs
target.add_state(state_id) unless target.state?(state_id)
end
This will copy all buffs between the user and the target. (I use buffs with priority < 50 and debuffs with priority > 50. Obviously, you can change any of this to match what you need.)
Code:
when /WEIGHT OF THE WORLD/i
for member in $game_party.alive_members
next if member == user
for state in member.states
next if state.priority <= 50
user.tp += 4 unless user.state?(state.id)
user.add_state(state.id)
member.remove_state(state.id)
end
end
This pulls all debuffs to the caster. It also grants TP if it's a new status ailment -- you can cut that out of course, but hey, maybe you like the idea.
Code:
when "MANUS DIABOLI"
user_debuffs = []
for state in user.states
next if target.state?(state.id)
next if target.state_resist?(state.id)
if state.priority > 50
user_debuffs.push(state.id)
end
end
unless user_debuffs.empty?
ss = rand(user_debuffs.size)
target.add_state(user_debuffs[ss])
user.remove_state(user_debuffs[ss])
end
This moves one ailment that the target doesn't have or is immune to, to the target. (Weird sentence, sorry.) You can move all of them with a
for loop, of course.
🙂
Sorry this is a bit behind the times, but I hope this helps you make some cool abilities! Feel free to poke around in my games to copy-paste these or to see others --
https://rpgmaker.net/users/Craze/ . (These are from
Owlpocalypse and
KO Cupid.)