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.

Skill Triggers Switch

I need to be able to activate a switch when someone uses a skill.
In reality, I'm trying to make it so that a skill is added after you use a self-buffing skill. Once you use the added skill, the buff will wear off.

Well, simple but I just couldn't figure it out. I tried making a skill call a common event which would deactivate a state on one of the characters. However, the common event would trigger without the skill being fired, and there's no way to set off a normal trigger using a skill.

In Depth:
Okay here's the scenario.

Troop events: automatically switch on switch 1 (turns on common events 1 and 2)

Skill 1 (when activated, gives Skill 2 to character)
Skill 2 (when fired, removes Skill 1 state)
Two common events:
1: Conditional Branch (if player is affected by Skill 1, then give Skill 2) Else remove Skill 2. Parallel.
2. Change State (remove skill 1 state) Parallel.

I don't know how to remove the state once the skill is activated which is the problem. And with that setup above, the second common event just removes the state right away. I just don't know how to activate it by using Skill 2.


Any help would be appreciated,

thanks very much in advance.
 
One option you could try is making a new state (rating 0, so the name doesn't show up) and make the skill give that state 100% of the time. Then in the Troops events, use a Conditional Branch checking each turn if an ally or enemy (whoever is the target of that skill) has the state inflicted. If so, remove state.

There might be a simpler method with common events, but I don't really understand your question. What do you mean by "the common event would trigger without the skill being fired?"
 
Okay here's the scenario.

Troop events: automatically switch on switch 1 (turns on common events 1 and 2)

Skill 1 (when activated, gives Skill 2 to character)
Skill 2 (when fired, removes Skill 1 state)
Two common events:
1: Conditional Branch (if player is affected by Skill 1, then give Skill 2) Else remove Skill 2. Parallel.
2. Change State (remove skill 1 state) Parallel.

I don't know how to remove the state once the skill is activated which is the problem. And with that setup above, the second common event just removes the state right away. I just don't know how to activate it by using Skill 2.
 
Oh, I see your problem.  Parallel process doesn't work during battle.  If you right click the "What's this?", it states that they only work on maps.  Brewmeister made a super timer to remedy the situation last time in the script request section.

~Guardian1239
 

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