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.

Event based or Not?

Howdy,
Well my inquiry is thus: Event based or Scripted? I am trying to and haven't been successful at so far; creating a mini game event. Sure it is like having an ABS, but not for the whole game...just for this mini game event. The results I want, been haven't been able to get are so: That when the mini game event is triggered; and when you engage the animal or monster on the map, when you push a specific button it will do a certain attack to the aforementioned animal or monster. Along with all the goodies of showing the attack animation on the event. With possible damage display on screen <but not necessary>. Earning gold or exp during the action. Recieving Damage for doing the wrong action. Say with the special attack instead of normal attack using SP or MP <whatever you want to call it>. As well as "killing" ie erasing the event when the proper action has been done. I have an understanding of switches, novice understanding of conditional branches, a n00b understanding of Common Events. I hope I made sense; which I probably didn't. And perhaps some one out there can be of assistance. Oh and I have absolutely no understanding of scripting <if there are links to a good place to learn about it; that would be much appreciated>. Thanks
 
Well, considering that you do not know how to script, the only option would be to request scripts - and the chance of it being fulfilled is relatively hideous.

Besides, if it's not like an on-going thing and just one instance of a mini-game, I'd just event it since it's not overly complicated. It'll help you learn a lot about eventing in its process too, considering that you are still not fully comfortable with everything yet. Everything you need are within buttons' reach. :>
 
I could still use some advice or tips on how to properly set up the mini game. Right now I am running into the issue that no matter when you push the button the attack happens. Meaning you don't have to be close to the object.

Actually I think I might have figured it out

Nope...I am still running into problems

Yeah Sorry for the triple posting. I am totally unfamiliar with forums. Yes maybe I shouldn't be on them then. Thank you all for your advice. I will try those out. If I run into an issue I will state my problem instead of rambling
 
Woah triple posting there -_-; Theres an edit button you know.

Try to mess with the events a bit more and stating your problem will be kinda helpful (not that I will help you though)
 
Have a parallel processing event somewhere, with the conditional branch __ Button is pressed, and insert the code inside the branch as to what happens when it's pressed. Remember to put a wait 5 frames or something at the end of the code inside, so it's not spammable.
 
Just use event-based for now til you really find a need for scripting. If you find yourself creating the same redundant code over and over in some sort of mini-game or system, and common events wont fix it, then it's probably time to learn scripting (I haven't really learned it yet either but I'm getting sick of the limitations of eventing and the amount of redundant coding it requires, so I'll probably try to learn scripting in the coming months.)
 
Reives, instead of putting a wait 5 frames in there, you might as well put in a 'Button Input Processing'. This requires you to press the button each time you want to trigger something, instead of just keeping the button pressed.
 
2 Part Question here: 1. How do I go about uploading something onto a forum post. <This might help everyone better understand my problem, or at least show what I have and if it is working or not working>. 2. To upload this specific event. How do I get it from RMXP to be able to upload it.
 
Tassadar;306515 said:
Reives, instead of putting a wait 5 frames in there, you might as well put in a 'Button Input Processing'. This requires you to press the button each time you want to trigger something, instead of just keeping the button pressed.
That's true, but I sort of find the auto-fire option handy when feeling lazy though, heheh.

And RG, you can take a screenshot by pressing PrtSc button on keyboard, then upload to photobucket.com or something. :>
 
Hmmm... interesting minigame, and I tell you so, because I'm making one. And yeah, Button Input will do fine. Just make sure to have a conditional branch to know if your position is 1 tile in front of the monster. And if it's yes allow the attack
 
I guess I just quite don't get it. I would really like to have it in my game. But not being very experienced in this sort of thing...I can not make it work. The issue I have run into is that No matter when you push the button it does the animation on the event.
 

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