Blizz-ABS Auto Equip Skills

Started by ToxicTrevor, April 22, 2012, 04:50:17 pm

Previous topic - Next topic

ToxicTrevor

Hi everyone i have a very simple request but due to my extreme lack of scripting knowledge I am reaching out to help from this great community!

What I'm asking for :
============A script that will cause skills to be automatically equip to the hotkey section, instead of being manually equip.============


I appreciate any help!  :)

Dweller

You can use a script call:

$game_player.skill_hotkeys[hotkeynumber] = skill_id


Example: $game_player.skill_hotkeys[1] = 7 (skill number 7 on hotkey 1).
Dwellercoc
Spoiler: ShowHide

ToxicTrevor

Quote from: Dweller on April 22, 2012, 05:29:59 pm
You can use a script call:

$game_player.skill_hotkeys[hotkeynumber] = skill_id


Example: $game_player.skill_hotkeys[1] = 7 (skill number 7 on hotkey 1).


Ok where would I put that script call? (Sorry I'm still relatively new to all of this.)

ForeverZer0

In an event. On the last page, in the bottom right corner of an event's command list, there is a command called "Script".
Choose that, and add the call to the text box. You may have to shorten it a bit to something like this:

n = HOTKEY_NUMBER
id = SKILL_ID
$game_player.skill_hotkeys[n] = id


Just replace the values that are written in all caps with your own.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

ToxicTrevor

Quote from: ForeverZer0 on April 22, 2012, 07:05:41 pm
In an event. On the last page, in the bottom right corner of an event's command list, there is a command called "Script".
Choose that, and add the call to the text box. You may have to shorten it a bit to something like this:

n = HOTKEY_NUMBER
id = SKILL_ID
$game_player.skill_hotkeys[n] = id


Just replace the values that are written in all caps with your own.


Ok so if i wanted hotkey 1 to be skill 72:Silver Bullet I would create and event then add this script

n = HOTKEY_NUMBER
id = SKILL_ID
$game_player.skill_hotkeys[1] = 72


then set the event as a parallel process?

Aqua

n = 1
id = 72
$game_player.skill_hotkeys[n] = id

You changed the stuff in ALL_CAPS

ToxicTrevor

Quote from: Aqua on April 22, 2012, 10:10:07 pm
n = 1
id = 72
$game_player.skill_hotkeys[n] = id

You changed the stuff in ALL_CAPS


Ok, it works great! thank you guys!