Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Equipment- Equipment Requirements.

Equip an Weapon or Armor, Only if another Weapon or Armor Is Equipped.

Well, Hello Again... Another time with my stupids requests.
This Time I request an Equip conditional Script.

In what consist?

Well, Is a requirement to equipment, but only for another weapons and armors, I will explain.

If you Want to Equip an Armor, for example the "Shield of X", you need have equipped a Accessory called "Ring of X".
Well, I was Thinking about how to use, if you can, I prefer a form like this:

Module weapons

ID of the weapon => Id of the necessary weapon, Id of the necessary armor, .....

an example:


Code:
Module...Weapons (Its only a stupid example of non-scripted form xD)

1 => {w => [2], a => [1]}

end

For the Weapon 1, you need have equipped the Weapon 2, and the armor 1.

Code:
a= for armors
w = for weapons.

Sounds ridiculous that you need a weapon to equip another weapon, but is because I use a Multi-Equip Script, and the SDK 2.3.

Well, all the code of above is an example, the Ideal of this script request is can customize the most possible, but if you have a better form Good for both :yes:.

Well that is all buddies.
Thanks for read! :thumb:
 
http://www.rmxpu.net/owai/scripts/eis_requirements.txt

Lets say you need armor 3 to equip weapon 5

Find this code:
Code:
  #===========================================================================
  # ** Equipment
  #===========================================================================
  
  module Equipment
    #========================================================================
    # ** Weapons
    #========================================================================
  
    module Weapons
      #---------------------------------------------------------------------
      # * Requirements
      #---------------------------------------------------------------------
      Actor          = {}
      Class          = {}
      Skill_All      = {}
      Skill_One      = {}
      Armor_All      = {}
      Armor_One      = {}

Below the Armor_One = {} line, add:
Code:
      Armor_One[5]      = [3]

Let me know if you need any help with the configuration. Just tell me the exact requirements you have.
 
Thanks for Reply.
But that Doesn't Work, or I'm the lol that can't make it work.
(I tested in a Blank Proyect)

Well, for example. The Actor need the Armor ID: 1 (The Bronze Shield in this case) to equip the weapon ID: 1 ( Bronze Sword.)

I've used:

Code:
 Armor_One[1]      = [1]
It's the Correct Code?

But I repeat, the Code that you provide me doesn't work... (Or I test bad).

Thanks.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top