The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Isith88 on May 10, 2007, 04:21:22 AM

Title: [RESOLVED] Extra Accessory Slots...
Post by: Isith88 on May 10, 2007, 04:21:22 AM
As the title implies, I need a script (or modified standard RMXP script) that will create two extra Accessory slots in addition to the first.

I've looked EVERYWHERE trying to find a script for this, and I've found a few that showed promise.  The only problem is, the scripts I keep finding have all of this extra stuff added in that I don't need...such as, Two-handed weapons, way too many different armor classes, etc.  All I need is a script that will add two extra accessory slots.  No more, no less.

Also, I tried doing it myself...I modified Game_Actor, and I thought I was on the right track to making it work, but I'm obviously doing something wrong.  Help?  :-\
Title: Re: Extra Accessory Slots...
Post by: Lackluster on May 10, 2007, 06:30:03 AM
Just use a freaking multi-equip script like everyone else and modify it so that it only adds 2 accesory slots.
Title: Re: Extra Accessory Slots...
Post by: Irock on May 10, 2007, 07:08:08 AM
The multi-equip script is great. It can easily be modified, if you follow the instructions correctly. ;)
Title: Re: Extra Accessory Slots...
Post by: Isith88 on May 10, 2007, 07:13:16 AM
Quote from: Irockman1 on May 10, 2007, 07:08:08 AM
The multi-equip script is great. It can easily be modified, if you follow the instructions correctly. ;)

Hi, thanks for the reply (which was polite, unlike Lackluster's...).

I've actually already downloaded and attempted to edit the multi-equip script (Guillaume777's, right?) several days ago, but I couln't make it work correctly.  I'm not a good scripter...I can edit a few basic things here and there, but overall I just suck out loud. 

But, since it seems to be my only option, I'll continue trying to figure it out...do you (or anybody who sees this) know where I can get the most easily understoood, up-to-date version of it?
Title: Re: Extra Accessory Slots...
Post by: Irock on May 10, 2007, 07:26:40 AM
Ah, I'll see if I can get it working for your needs. :)
Title: Re: Extra Accessory Slots...
Post by: Lackluster on May 10, 2007, 07:27:27 AM
Trickster's script is far superior to the one you have.
Title: Re: Extra Accessory Slots...
Post by: Irock on May 10, 2007, 07:30:08 AM
Does it really matter? It works for what he specifically asked for.

Honestly, you being so negative doesn't contribute to his problem.
Title: Re: Extra Accessory Slots...
Post by: Isith88 on May 10, 2007, 07:33:48 AM
Quote from: Lackluster on May 10, 2007, 07:27:27 AM
Trickster's script is far superior to the one you have.

I haven't seen that one.  I'll search around and get ahold of it.  Maybe I can successfully work it to my needs.
Title: Re: Extra Accessory Slots...
Post by: Isith88 on May 10, 2007, 07:35:03 AM
Quote from: Irockman1 on May 10, 2007, 07:26:40 AM
Ah, I'll see if I can get it working for your needs. :)

:o Really?  That's very nice of you.

You don't have to do that, though.  I should probably just learn to script better.  :lol:
Title: Re: Extra Accessory Slots...
Post by: Irock on May 10, 2007, 07:36:30 AM
Learning would be nice, but that script can be a little hard to understand.

You just hang tight. ;D

EDIT: Here you are.
[code]
#==============================================================================
# Multi-slot equipment script
#------------------------------------------------------------------------------
# Guillaume777
# 6.2.1
# 2006/02/14
#==============================================================================
#To change slots of character
# $game_actors[1].weapon_slots = [0,0]
# $game_actors[1].armor_slots = [2,3,4,5,6,7]
#
#To make armor equipable in new slot :
# Add (5) in its name, where 5 is its slot number
#To make 2handed weapons :
# Add an element called 2handed to a weapon
# or, adds its id in TWO_HANDED_WEAPONS = []
# or, adds (2handed) in its name
#To make a weapon double attack
# Add an element called 2attacks to a weapon
# or, adds its id in DOUBLE_ATTACK_WEAPONS = []
# or, adds (2atks) in its name
#To make a weapon/armor cursed
# Adds its id in CURSED_WEAPONS or CURSED_ARMORS, or
# put (cursed) in its name
#To make a weapon require an offhand instead of any weapon
# Adds its id in NEEDS_OFFHAND or
# Adds (needs_offhand) in its name
module G7_MS_MOD #you set the default names,slots, etc here

#========Set weapon/armor properties ==========================================
CURSED_WEAPONS = [] #ids of weapons to be cursed
CURSED_ARMORS = [] #ids of armors to be cursed
TWO_HANDED_WEAPONS = [] #ids of 2handed weapons
DOUBLE_ATTACK_WEAPONS = [] #ids of double attack weapons
NEEDS_OFFHAND = []
SWITCH_EQUIP_WEAPONS = []
SWITCH_EQUIP_ARMORS = []
# use 1 array, first value of array = false item, second value = true item

#=========Set weapon/armor properties with element tagging and name edit=======
CURSED_STRING = 'cursed' # put (cursed) in item name for it to be cursed
HANDS_ELEMENT = 'handed' #nb of hands in front of HANDS_ELEMENT in the database
HANDS_STRING = 'handed' # name of string in item name like (2handed)

MULTI_ATTACK_ELEMENT = 'attacks' #name of element to tag to multi attacks like
# (2attacks)
MULTI_ATTACK_STRING = 'atks' #string in item name, like (3atks)

NEEDS_OFFHAND_STRING = 'needs_offhand' #string in item name if the weapon
#needs an offhand like (needs_offhand)
#=====Set character slots properties ==========================================
WEAPON_KINDS =
Title: Re: Extra Accessory Slots...
Post by: Isith88 on May 10, 2007, 07:52:05 AM
Quote from: Irockman1 on May 10, 2007, 07:36:30 AM
Learning would be nice, but that script can be a little hard to understand.

You just hang tight. ;D

EDIT: Here you are.

Well, it works like a charm.  I envy your ability to do that sort of thing with ease.  I wish I could do something in return for you.

I think I'll look at the original script that was used and then look at yours, and compare them.  That way I can see what you did and learn a thing or two.

Thanks very much!  :D
Title: Re: Extra Accessory Slots...
Post by: Irock on May 10, 2007, 07:53:28 AM
Your welcome!

I don't require anything in return. I'm glad to help. ;)

And make sure you add [RESOLVED] to the title.