Most efficient way of changing skill animations with different weapons?

Shion Kreth

White Knight
Veteran
Joined
Jan 28, 2013
Messages
281
Reaction score
47
First Language
English
Primarily Uses
So if characters can equip, say, swords or hammers, obviously the animations for skills would need to be different; so I figured the easiest way to do this would be to have two versions of each skill.. then considered having the weapon seal the alternate weapon's skills, or even just having the weapons themselves grant the skills, but then started wondering if maybe this isn't the most efficient way of doing it. I'm curious what kinds of solutions have other people come up with.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Have you taken a look to see if there are any scripts that do this? I'm sure it's been requested before, and I have a feeling the answer is usually a pointer to a script.


What sort of "special moves"? Are you using some kind of animated battler script?
 
Last edited by a moderator:

Shion Kreth

White Knight
Veteran
Joined
Jan 28, 2013
Messages
281
Reaction score
47
First Language
English
Primarily Uses
Have you taken a look to see if there are any scripts that do this? I'm sure it's been requested before, and I have a feeling the answer is usually a pointer to a script.

What sort of "special moves"? Are you using some kind of animated battler script?
I did look and found posts with other people looking for the same but the only responses they ever got were ways to change to the basic attack, and I want skill animations(which is what I meant by special moves) so that, for example, if I use the skill 'power strike' it plays the animation slash special 1 if the character has a sword equipped, or plays blow special 1 if a hammer is equipped, but so far the only way I can find is changing the skill itself.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You really couldn't find any scripts that change the skill animation based on the weapon equipped?


I thought for sure they were out there. If I remember, I'll have a look tonight when I get home. I really don't think it'd be that difficult.


ARE you using any battle scripts? Or pure RTP?


Do you WANT a script to do it? Or do you prefer a non-scripting solution (I think what you've already done is probably the best you can get without scripts, but I do agree, it seems like a LOT of work to do)


edit: I found this, but I don't have time to take a good look at it and see if it suits your needs.
 
Last edited by a moderator:

Shion Kreth

White Knight
Veteran
Joined
Jan 28, 2013
Messages
281
Reaction score
47
First Language
English
Primarily Uses
You really couldn't find any scripts that change the skill animation based on the weapon equipped?

I thought for sure they were out there. If I remember, I'll have a look tonight when I get home. I really don't think it'd be that difficult.

ARE you using any battle scripts? Or pure RTP?

Do you WANT a script to do it? Or do you prefer a non-scripting solution (I think what you've already done is probably the best you can get without scripts, but I do agree, it seems like a LOT of work to do)

edit: I found this, but I don't have time to take a good look at it and see if it suits your needs.
-Yes I really couldn't find one, doesn't mean there isn't one, but I did go through the master script list.

-I'm using yanfly's battle engine.

-I am fine with whatever accomplishes it but if a script can simplify it so much the better.

-The one you presented from Tsukihime may work, if I can specify in the animation formula that it's when the user is using skill (id), but I'm not sure if that's doable.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
a.current_action.item.idwould return the ID of the current skill or item that's being used (if any).Note that this is "skill or item" so you would need to further add conditions if you want to limit it only to skills.
 

Shion Kreth

White Knight
Veteran
Joined
Jan 28, 2013
Messages
281
Reaction score
47
First Language
English
Primarily Uses
a.current_action.item.idwould return the ID of the current skill or item that's being used (if any).Note that this is "skill or item" so you would need to further add conditions if you want to limit it only to skills.
Haha, so when I go to use a healing potion on the next character they'd appear to be restored by being viciously shredded by a sword combo?

How would I go about adding these extra conditions? (though I suppose I could also just ensure no item id's line up with the weapon specific attack skill ids too?)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You'd have to do a test for a.current_action.item.is_a?(RPG::Skill)
 

Shion Kreth

White Knight
Veteran
Joined
Jan 28, 2013
Messages
281
Reaction score
47
First Language
English
Primarily Uses
a.current_action.item.idwould return the ID of the current skill or item that's being used (if any).

Note that this is "skill or item" so you would need to further add conditions if you want to limit it only to skills.
Alright, after embarrassingly long I was able to make this formula work:

Code:
<animation formula>if a.current_action.item.id == 1224else19end</animation formula>
It's quite a flexible script! Also, it looks like items of the same id aren't a concern in this instance as using the id 12 item played it's normal animation (I think because it has an animation set (38 in this case) rather than 'normal attack'?). Is that correct and I'm all good? If so thanks very much both of you and the thread can be closed.
 
Last edited by a moderator:

captainproton

Dangerously Nifty
Veteran
Joined
Dec 20, 2013
Messages
1,276
Reaction score
570
First Language
english
Primarily Uses
Maybe I'm misunderstanding, but would you need to use a script?

You can attribute whatever animation you want to a weapon or skill, and you can make skills require certain weapons.

Like, you have the sledgehammer weapon, and it plays the Blow Physical animation when used. The rapier weapon plays the Slash Physical animation. The frost blade weapon plays Slash Ice

Then, you have the Fury Blade skill, which you can only use with a sword. When used, it just plays the weapon's animation, whether it's Slash Physical or Slash Ice.

The Crash Hammer skill requires a hammer weapon, and plays a Rock Smash animation, no matter the weapon's individual attack animation.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Yes, the problem is, it's the SKILL animation he wants changed, based on the weapon that's equipped. So he'd need to have as many versions of the skill as he has weapons, and have each version of the skill attached to the weapon so it's learned/forgotten when the weapon is equipped/unequipped. In the first post, he says he started off that way, but wondered if there was a different/easier way to just have ONE skill and change its animation. This is where scripts entered the discussion :)


Either way would be acceptable - it's just up to preference.
 

captainproton

Dangerously Nifty
Veteran
Joined
Dec 20, 2013
Messages
1,276
Reaction score
570
First Language
english
Primarily Uses
I see. I guess I just misread the post. Oops!
 

Shion Kreth

White Knight
Veteran
Joined
Jan 28, 2013
Messages
281
Reaction score
47
First Language
English
Primarily Uses
Yes, and I've since realized that since multiple classes with different skills can equip some common weapons like swords and daggers it'd really have to be sealed, meaning on level up it'd be listing characters have learned the same skill up to 3 times over, and if they had no weapon equipped for whatever reason you'd have this big list of the same skills; just wouldn't look very clean. This is the way to go.
 

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top