Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: ToxicTrevor on April 22, 2012, 04:50:17 pm

Title: Blizz-ABS Auto Equip Skills
Post by: ToxicTrevor on April 22, 2012, 04:50:17 pm
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!  :)
Title: Re: Blizz-ABS Auto Equip Skills
Post by: 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).
Title: Re: Blizz-ABS Auto Equip Skills
Post by: ToxicTrevor on April 22, 2012, 06:59:33 pm
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.)
Title: Re: Blizz-ABS Auto Equip Skills
Post by: 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.
Title: Re: Blizz-ABS Auto Equip Skills
Post by: ToxicTrevor on April 22, 2012, 10:03:14 pm
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?
Title: Re: Blizz-ABS Auto Equip Skills
Post by: 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
Title: Re: Blizz-ABS Auto Equip Skills
Post by: ToxicTrevor on April 22, 2012, 11:18:59 pm
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!