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.

Need any ideas on how to do this...

Status
Not open for further replies.
Alright... this is for my personal project which is separate from my husband's which is the one I've been getting help for all along. My project is just a personal project that I have no intention to sell, but just to learn the game and let people play for fun. In this game, I need to figure out a way to do something... any ideas are appreciated:

The game will need to keep track of... essentially how "good" "neutral" or "bad" the main character is throughout the game. I will need to be able to set certain events up... so that the main can choose one of three options and behind the scenes, receive points toward good, neutral or evil ... in the end, if the character was "good" enough (reached a certain number of "good" points?) they will get one ending, and another ending for neutral, and another for evil...

So I need something to let me assign certain options to give "alignment points" and to handle keeping track of them, tally them, and ultimately base the ending option on this.

Any ideas? I've seen games where you play to try to win a character's affections and you have to do enough things right to get them to like you... would it work something like this?

Any thoughts are appreciated...

Thanks so much!
 
Use a variable. Say, -100 is totally bad, 0 is totally neutral and 100 is totally good. (don't need to use these numbers)
Then have choices affect the variable, where doing bad things drops it, and good things ups it.
Then, at any point in the game where your alignment will affect something, tell it to check the variable. Decide what area of the scale (-100to100) gets which event and set conditionals to play it out properly.

That'd be how I would do it. If anything doesn't make sense just ask.
 
I understand what you're saying... But I don't know how to implement it.

This is using the basic events system in the game right?

I think I understand how to do this...

I made Variable 001 into "Briary Alignment". (Briar is my main character.)
So if I set an apple on a table... I'd make three choices:

Take the Apple
Leave it alone
Buy it and give it to that hungry kid over there.

If Briar chose "Take the Apple" I'd hit a control variable and "sub -1 constant" right?

Do I just do this after each choice in the list? How would I lay that out?

Also, in the end, I see that events can have variables set as conditions... So is this right? I'd make a page, set the condition to variable "Briary Alignment" is 75 or more for page one... then "Briary Alignment" is 50 or more for page 2... then how would I set page 3 (the evil ending) so that anything 49 or LOWER would set it off, since the default on the page is "or more" and there seems to be no way to change that?


Thanks so much for pointing me in the right direction on this... I'm learning the system so quickly now.. :)

-Shei
 
Make the evil page the first page. and then the other two. RMXP will play the highest number page that it has the correct requirements to run. So say you're at 12 and wholeheartedly evil.
And your pages go like this.
Page one has NO requirements, page two needs 50 or more, and page 3 needs 75 or more.
At 12, it can't play the 3rd page, so RMXP will check the second, which it can't play, so finally it checks the 1st, which it can play, so it runs that event.

And yes, you would change the variable in every event that you want to affect the variable as you said with the apple example.
Hope this makes sense. And glad to help. n.n
 
Only one thing on that... If I have 51... It'll play the Neutral ending on page 2... But then, wouldn't it also play page 1 which has no requirements to run? Or would it just ignore it?

Thanks sooooo much :) <3 <3 <3
 
This topic has been resolved. If arsieiuni or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

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