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.

Weapons adding certain skills

Alo

Member

I wonder if there is any way that would allow you to have a character have certain skill if a certain weapon is equipped. For example: XYZ has Assault Gun equipped, so he has Grenade Launcher skill. When he unequips that weapon, the skill disappears. I tried to do this with some common events and failed. Can anyone help me?
 
Couldn't you just make a common event saying: "If Actor XYZ has 'Assault Gun' equipped, teach XYZ skill 'Grenade Launcher'. Else, remove skill 'Grenade Launcher' from Actor XYZ." I would think that would work...the only problem is that it would have to be a parallel process event, thus creating lag. You'd also have to turn a switch on at the very beginning of the game that would activate the common event. That should work.
 
Unfortunately, common events only work when you're outside the menu or a battle. The problem with Dadevster's method is you won't learn the skill immediately after you equip a weapon until you leave the menu. If you don't like it, the only remedy to this is requesting a script.
 

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