First Strike Items / Item Priority

Xignotus

Villager
Member
Joined
Dec 14, 2017
Messages
13
Reaction score
4
First Language
German
Primarily Uses
RMXP
Hello!
I am looking for a way to have all my items get priority during battle, meaning that if a character uses an item, the item always goes before any enemy action.

There is a script to achieve this effect for skills:

But I am not experienced enough to attempt to change this to work for items as well, especially when I don't know if this would be at all possible. Somy question would be: Has this already been done or would you think that this could easily be done?

thank you :D
 

Xignotus

Villager
Member
Joined
Dec 14, 2017
Messages
13
Reaction score
4
First Language
German
Primarily Uses
RMXP
Just in case anyone has a similar issue and comes across this post:
I seem to have found a way to make first-strike items by playing around with game_guys First Strike Skills.

I hope it is okay to post other people's scripts here? If not I am sorry and please delete.

#===============================================================================
# First Strike Skills
# Author game_guy
# Version 1.0
#-------------------------------------------------------------------------------
# Intro:
# Remember how in pokemon games, there were certain moves like Quick Attack you
# would attack first no matter what? This does exactly that!
# NOTE: I made a script called First Strike States. This allows skills to strike
# first instead of having to have a first strike state to attack first.
# NOTE: If more then one actor/enemy uses a first strike skill, the fastest
# will attack first.
#
# Features:
# Setup as many skills
# Skills attack first at every turn
#
# Instructions:
# Go down to Config and set everything up.
#
# First_Strike_Skills = array of skill id's
# Every skill you want to be a First Strike Skill, place the id in the array.
#
# Compatability:
# Not tested with SDK.
# Made for the Default Battle System
# Will probably not work with RTAB (Not Tested)
#
# Credits:
# game_guy ~ For making it
# Shining Riku ~ For the idea based from First Strike States
#===============================================================================
module GameGuy
#==========================================
# Config
#==========================================
First_Strike_Items = [57,86]
#==========================================
# End Config
#==========================================
end
class Scene_Battle
alias gg_attack_first_items_lat make_action_orders
def make_action_orders
gg_attack_first_items_lat
@tempa = @action_battlers
@tempa2 = []
@tempa3 = []
for i in @tempa
if i.current_action.kind == 2 &&
GameGuy::First_Strike_Items.include?(i.current_action.item_id)
@tempa2.push(i)
else
@tempa3.push(i)
end
end
@action_battlers = []
@tempa2.each {|i| @action_battlers.push(i)}
@tempa3.each {|i| @action_battlers.push(i)}
end
end
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Profile Posts

so, ive been gone for too long when i log in and see that everything is where is shouldn't be. XD
Steam killing my eyes.. I forgot why I use it only when I have no other choice
Making a map, my brain went "Look, Mjölnir!" as I plotted out a sacrificial entrance.

Actually, it went, "Look, hammer. Wait, Thor's hammer!"
CG tile rendering, take 3: windows.
which section you guys think looks more accurate to the perspective? left or right?

for reference, this is what it looks like "at street level"
Okay, Animal Crossing is remarkably addictive and exceptionally calming. I've been playing it pretty exclusively... like... 6 hours a day. Been a while since I've been this engrossed.

Forum statistics

Threads
95,402
Messages
928,922
Members
125,622
Latest member
Komalis
Top