Auto Equip On Empty

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
824
First Language
English
Primarily Uses
Auto Equip On Empty v1.01
By DreamX

 
Introduction/Features
You can specify which weapon or armor to automatically equip an actor when they unequip (not swap) a weapon or armor



Patch Notes


None


How to Use
Right click the script link and select save link as a .js file.



Notetags go into an actor's notes.


Put <unequipWeapon:x> with x being the weapon id to equip when unequipping a weapon.
Put <UnequipArmor: x y> with x being the armor slot ID (see Equipment Types under Types in the database) and y being the id
of the armor to equip when that armor slot ID is unequipped. You can put more than one of these in the notes for
an actor, but be sure to do only one per line.

The player cannot gain duplicates of the auto equipment by equipping/unequipping.

You will still need to choose an actor's initial equipment, this plugin only affects when they manually unequip something.



Script


Credit and Thanks
- DreamX



Author's Notes/Terms of Use
Free to use and modify for commercial and noncommercial games, with credit.
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

I wrote a nice animated preloading system for mv+mz today. It only supports graphic assets atm, should it support audio too? See it in action in my recent minigame @
I posted my first commercial game on the forums, and now waiting for approval.
fingers crossed.
TMW the air quality is so bad, your hair changes color every time you wash it. :LZYyuck:
Finished two animations today. :kaojoy:
Sigony wrote on Ksi's profile.
Just wanna say that I love your videos.
When are you fighting Floyd Mayweather?

Forum statistics

Threads
102,998
Messages
996,631
Members
134,482
Latest member
Kartof
Top