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.

Can i have 2 weapons equiped initially using GUILLAUME777's?

I hope this is the right section

Hey guys, i've acquired a copy of GUILLAUME777's Multi-Slot equipment script and it's perfect. However, that being sad i don't see a function to allow my character to equip more then 1 weapon initialy. My character in question is a gunslinger, and uses 2 pistols. I would love for him to be able to start of with 2 equiped initiallyy but i can't figure out how to do it. I'm still a novice so no harsh words please :].


Thanks in advance
 
Make an event, and add this call script to it.
Code:
$game_actors[x].weapon_ids[1] = y
Replace x with the ID of the actor.
Replace y with the ID of the weapon you want equipped automatically.
So if you wanted to change the main character's secondary starting weapon to weapon ID 13, the event would look like this:
Code:
$game_actors[1].weapon_ids[1] = 13
Let me know if this doesn't work, but I think that should do it.
 

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