Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Having several endings
« previous next »
  • Print
Pages: [1] 2

Author Topic: Having several endings  (Read 7185 times)

Offline Araloth

  • Wood elf with a personality complex
  • Acolyte
  • *
  • Posts: 356
  • Elf ears. oh wait thats just in my dreams...
Having several endings
« on: August 03, 2004, 09:17:41 AM »
Well i browsed through some sites and i never found a toturial for this.

This is for making 2 or three endings.
In your game, youll probably need to make a lot of of choices,
if you dont, this toturial doesnt work.

For the three or two endings.
If you want two, make sure theres an uneven number of choices.
If you want three, make an even number.

Now simply start off by making two variables, called "good" and "bad".
For every choice you make, if its a good one, add 1 to good.
If its a bad one, add to bad.

Example:
A kid is drowning and your hero passes by.
The kid screams: "help me!"
Now a choice event, with yes and no, or whatever you want them to be.
For yes, 1 is added to good.
For no, 1 to bad.

At the ending of the game, simply make 2(for two endings)
or 3(for three) fork conditions(sometimes called conditional branch).

<<<2 fork conditions:>>>

>fork condition: if var "good" is higher than var "bad"
>>
>>END
>fork condition: if var"bad" is higher than var "good"
>>
>>END

Now go to the common event tab(in the database), and make your two endings.

Edit the ending to make this:

>fork thingie
>>Call common event "good"
>>END
>fork thingie
>>call common event bad
>>END

There you have a 2-ending game!

<<>>

Go to the common event tab and make your three endings.

Now the event:

>fork var good is higher than bad
>>call event good
>>END
>fork var good is equal to bad
>>call event medium
>>END
>fork var bad is higher than good
>>call event bad
>>END

Test it several times for bugs, and you're finished!
Logged
The forum could NOT establish a connection to this image:
Sig by gamerman4.

Offline Araloth

  • Wood elf with a personality complex
  • Acolyte
  • *
  • Posts: 356
  • Elf ears. oh wait thats just in my dreams...
(No subject)
« Reply #1 on: August 03, 2004, 09:42:27 AM »
i wonder why people almost never reply to toturials...
Logged
The forum could NOT establish a connection to this image:
Sig by gamerman4.

Offline bibi

  • War of Genesis
  • Initiate
  • *
  • Posts: 11
  • i luv rpgs and drawing
(No subject)
« Reply #2 on: August 03, 2004, 11:37:22 AM »
becuz all they need is the n4mation. :guns:  >:
Logged
... Whatchu lookin at...   What...
You gotta problem or sumthin'...
GO AWAY!....
Who are you?
Whatever.

Offline robotroy

  • Beta Tester
  • Initiate
  • *
  • Posts: 47
(No subject)
« Reply #3 on: August 03, 2004, 12:15:18 PM »
That's a good tutorial.  Rather simple once you actually think about it, but it never occured to me to do something like that before.  I'll try to implement something like that in a future game.  Good jorb!
Logged

Offline Araloth

  • Wood elf with a personality complex
  • Acolyte
  • *
  • Posts: 356
  • Elf ears. oh wait thats just in my dreams...
(No subject)
« Reply #4 on: August 03, 2004, 01:22:44 PM »
thnx :D i got the idea from a game review that had several endings, and i started thinking how to do that in pg maker.
Logged
The forum could NOT establish a connection to this image:
Sig by gamerman4.

Offline WarxePB

  • Action Sue
  • Royal
  • *
  • Posts: 3,601
  • What killed the dinosaurs?
    • The Gigaverse
(No subject)
« Reply #5 on: August 03, 2004, 02:18:06 PM »
I agree with Robotam. It's simple, yet effective. I would suggest that you try to cut down on the spelling and grammar errors in the future.
Logged
Blog: The Gigaverse
Twitter: Initial Chaos

Offline Araloth

  • Wood elf with a personality complex
  • Acolyte
  • *
  • Posts: 356
  • Elf ears. oh wait thats just in my dreams...
(No subject)
« Reply #6 on: August 04, 2004, 07:04:55 PM »
:) ill try, but i think they're mostly typing errors. im quite good at english :p
Logged
The forum could NOT establish a connection to this image:
Sig by gamerman4.

Offline cosmo

  • Member
  • Associate
  • *
  • Posts: 119
(No subject)
« Reply #7 on: August 04, 2004, 08:15:14 PM »
why use several variables, just use one, add points for good things, - points for bad things, then just see if the variable is higher, lower or equal to a certain value
Logged

Offline Osmose

  • So freakin' inactive
  • Royal
  • *
  • Posts: 3,041
(No subject)
« Reply #8 on: August 04, 2004, 08:40:47 PM »
Cause then you have to count how many good/bad things you have. You might say just check if it's zero, but what if you want a part of the stor to REQUIRE the player to do something good? Even if the player still tried to be bad all they wanted, theres the chance they they can end up with something above 0. Araloth's way is easier ^^
Logged
Hrm.

Offline MrMister

  • damn u vile woman
  • Royal
  • *
  • Posts: 3,506
(No subject)
« Reply #9 on: August 04, 2004, 08:56:05 PM »
Quote
Originally posted by cosmo
why use several variables, just use one, add points for good things, - points for bad things, then just see if the variable is higher, lower or equal to a certain value
Because different variables could affect different things, like what people are there, where you are, how big your fingers are, etc.
Logged
you look like an orphan

Offline chaoticparadox60659

  • Full Time Farmer, Part Time Angel Of Death
  • Initiate
  • *
  • Posts: 60
  • Details? About Myself? Hm... I Hate Writing Biographies!!!
(No subject)
« Reply #10 on: August 07, 2004, 12:15:41 AM »
Hmm... My Game ( Like 70% Complete) Has An Ending Like That Where At The Very End Of The Final Battle (You're Losing) You Choose Either To Join The Villain Or To Keep Fighting Him. If YOu Say [Join Him,] You WIn Eternal Life. If You Say [Keep Fighting] You Both Die And The World Only Knows YOu AS A Fairy Tale... I HATE Games With Happy Endings.
Logged
- Phuh Q. -

Offline Araloth

  • Wood elf with a personality complex
  • Acolyte
  • *
  • Posts: 356
  • Elf ears. oh wait thats just in my dreams...
(No subject)
« Reply #11 on: August 07, 2004, 06:51:01 AM »
i think people that type all words with a capital letter are funny :)
Logged
The forum could NOT establish a connection to this image:
Sig by gamerman4.

Offline chaoticparadox60659

  • Full Time Farmer, Part Time Angel Of Death
  • Initiate
  • *
  • Posts: 60
  • Details? About Myself? Hm... I Hate Writing Biographies!!!
(No subject)
« Reply #12 on: August 08, 2004, 09:42:05 PM »
I Write Like This Too... I Think I Have OCD, But I'm Far To Lazy To Tell Anyone Who Can Actually Help Me Get Tested... ha ha im not Doing It Now!

Edit: DAMN!!!
Logged
- Phuh Q. -

Offline SaiKar

  • KOFFING!
  • Staff
  • Royal
  • *
  • Posts: 4,082
(No subject)
« Reply #13 on: August 09, 2004, 06:26:23 PM »
Well the thing about game ending is there is nothing "sacred" about the last event that ends a game. The game code itself does not know that the game is ending so there is nothing difficult about programming multiple endings. It is exactly the same as any fork really.
Logged

Offline Red Giant

  • Leader
  • *
  • Posts: 2,608
  • The best damn bio in the whole damn world. YEAH!!
(No subject)
« Reply #14 on: August 09, 2004, 06:31:00 PM »
Quote
Originally posted by SaiKar
Well the thing about game ending is there is nothing "sacred" about the last event that ends a game. The game code itself does not know that the game is ending so there is nothing difficult about programming multiple endings. It is exactly the same as any fork really.

Agreed, but it's the concept of it.
Logged

  • Print
Pages: [1] 2
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Having several endings
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum