Help - Search - Members - Calendar
Full Version: FP: Equip Slots
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS2
Tsukihime
FP: Equip Slots
Author: Tsukihime
Type: Features add-on

Overview

Who says you can't wear 5 hats or 3 coats?

This script provides basic functionality to expand the number of equip slots for every equip type.

Features
  • Change the number of equip slots you can have
  • Create custom equip types
  • Specify custom sort order for equip types (order which they appear)
  • Allow equips to add more equip slots
  • Allow classes to add more equip slots


Usage

In the configuration, just specify how many equip slots you want for each type of slot.
You can add additional equip types by adding more entries in the "extended equip types" section.

To specify that an equip is of that type, use the following notetag

CODE
<etype n>


Where n corresponds to the equip type defined in the table above.

If you would like a custom sort order (eg: gloves appear above weapon), you can modify Equip_Order to something you like. Note that there is no way to interweave equip types (eg: weapon, shield, weapon, bodygear, weapon).

In order to add slots to your actors, you must use "features". This is not available
in the default editor, so you will need to use notetags.

In actors, classes, weapons, armors, and states, you can type

CODE

    <+eslot: slot_type amount>

    <+eslot: 0 2>
    <+eslot: 1 1>


The first example says to add two slot 0's. Slot 0 by default is the weapon slot, so your actor will have two weapon slots.

Because these are features, the slots change depending on what you equip, what your class is, and who the actor is. It is also possible to change slots in game using script calls.

You can add more slots to your actor directly through script calls.

CODE
add_slot(actor_id, slot_type, amount)


This will add the given amount of slots based on the specified slot type to that actor.

Screenshots

Lots of slots
?




Equipping a shield gave me more slots
?





Downloads

Script: http://db.tt/NnnLMyGb

Kread-Ex's Actor inventory
DUFUTA
Hey this is pretty cool. I may just use this. The equip which adds equip slots is a tremendous idea.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.