Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Codeing an attack using Yanfly plugin

Hello,

I'm using the Yanfly plugin for Action Sequence Packs 1-3. I'm trying to do a basic attack to have a stab animation. Here is my code so far. When I have enemies use the skill nothing happens. And for my heroes once they learn the skill it is grayed out and they can't even use it. What am I doing wrong here.

Here is the coding:
<Learn Require Level: 1>

<Learn Cost: 50 JP>



<setup action>



display action



If user.attackMotion()=='missile'



camera focus: target

camera offset: right, 50



else



camera focus: user

wait: 40

camera focus: target

camera offset: right, 50



end



immortal: targets, true

</setup action>



<target action>



if user.attackMotion()!=='THRUST'

move user: target, front, 20

else

perform start

end
 
Could you give me your plugin list as it appears in your plugin manager? It'll help me get a better idea of how to help if I know what you have and where certain plugins are in the list

--EDIT--

Looking back at this, the biggest things you need to do is make sure you have YEP_BattleEngineCore installed, as the Action Sequences cant work otherwise, and look over the Action Sequence Help files, I get the feeling that there is code missing in your notetags, for when you get the skill working.

Also, to fix your "grayed out" issue, make sure that the skill isn't locked to a specific class in the database.
 
Last edited:
Thank you for the advise I didn't even think about the skill being locked to a class, I'll check to see if that works. I do have both the battle Engine and Action sequences in. I'm going to double check the coding too.
 

D34DP00L

Villager
Xy$
0.00
Hello so I am trying to get the below to work but get an error. I am using all the plugins from yanfly that are needed (all battle plugin and core plugins) i the order in which he has shown they should be. I am not sure what is wrong with the tag below if anyone can tell me?

<setup action>
display action
immortal: targets. true
</setup action>
<target action>
if user.attackMotion() !== 'missile'
move user: targets. front. 20
else
perform start
end
wait for movement
motion attack: user
wait: 10
ttack animation: target
wait for animation
action effect
</target action>
 
Top