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 2 Attack and more

Somebody can HELP me? I will explain my trouble. In my game is hero with gun. I many times tried create skill, which will damage one enemy six times. Revolver:) I make skill, which on use call common event. In this common level I have next
Variable Shot=0
Loop
Conditional Branch Shot<6 then
Shot+=Shot
Play animation Single shot
Deal damage Entire party VDamage

How can I deal damage not all enemies and not fix enemy, but enemy which was chosen by Player. Its Possible? Or only scripting?
 
Try linking it to this common event instead:

Label: Loop
Control Variables [0001] +1
Conditional Branch: [0001Revolver] = <6
  Then: Force Action: Actor [whoever] Last Target, Execute Now
  Jump to label: Loop
Else

Branch end
 
srowland98 , you're genius! This is cool solution!!!!! My thanks to you. It's work how I wish!
I like difficult alghorirhms and simple solution I often not see...

Not good. Who must Execute skill? I can choose CONSTANT user, but if player change position my gunner with other member? What then? Then do shots will other... And in this case appear name of skill 6 times. I need one time name skill and 6 shots in chosen by Player single enemy! Trouble.......

and every execute action, will be called THIS common event and shots will be unlimited times until enemy DIE! If not Shot=0 in begin event, then will be six shots and NEVER player can use this skill...
 

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