[ACE] XAS Swap Skill on Button Press

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
574
Reaction score
196
First Language
English
Primarily Uses
RMMV
Hello! :)

In my game, I'm using the ABS script XAS Battle System (Here is a link to the original XAS script, and Here is a link to an English download of the script! NOTE: I'm using Ace!)

In this script, you typically have to "equip" or select a skill to set to a skill hotkey. Changing to a different skill, however, means you have to stop the battle, and go into a menu to select it.

What I'm hoping can be done is to have a script call in which causes the "equipped" skill to cycle to the payer's other skills with the press of a button. I can simply set a key to run a common event with a hotkey script, so I only need a script command that when called cycles the skills by 1. 

I hope I explained this well enough, I was at a bit of a loss with how to describe it. If I left anything out, please feel free to ask.

Thank you. :)
 
Last edited by a moderator:

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
Didn't I make you this script already? Or did I make it for someone else? My memory fails me, I'm beginning to think that I'm getting old! o.o


Anyway, here is the script I made for this: http://pastebin.com/SJw5gC42


It should do what you want without you having to make any common events for it. You will be able to swap any tools (weapons and items too) with the button you want (configurable).


Ohh, I made it for Mireneye actually, just found the topic for it. :D
 
Last edited by a moderator:

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
574
Reaction score
196
First Language
English
Primarily Uses
RMMV
Thanks a bundle, this is exactly what I've been searching for, and works great! :D
 

supinpa

Warper
Member
Joined
Aug 30, 2014
Messages
2
Reaction score
1
First Language
English
Primarily Uses
Hey Sixth, I was looking around for something like this as well!


Thanks a lot for this script.


Just thought I'd tell you about this little error in the script, 


at line 149, you have @cycleskill = { :weapon => 0, :armor => 0, :item => 0, :item => 0 }


when I believe you meant for it to be @cycleskill = { :weapon => 0, :armor => 0, :item => 0, :skill => 0 }.


It's not that major, but it gives you an error if you try to change skills without having one selected already.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
Ohh, thanks for the report!


Yeah, that should be skill indeed, seems like I forgot to edit the copy/paste stuff there.


Fixed it on pastebin.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top