Alternate or Different Game Story

Started by Arjunaz78, Sun 16/10/2011 06:40:28

Previous topic - Next topic

Arjunaz78

I want to create a game that include different or alternate game storyline when player choose or take action when different game situation/options in game trigger..how can i make it?

THX.
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

RickJ

#1
SMOP

Code: ags

*** Script Header ***
import int GameOption;

*** Global Script ***
int GameOption;
export Game Option;

*** Any Script ***
function PlayerChooseSomeAction() {
   GameOption = 1;
}
function PlayerChooseSomeOtherAction() {
   GameOption = 2;
}

function AnyFunction() {
   if (option==0) {
      // Do Something
   }
   else if (option==1) {
      // Do Something else
   }
   else if (option==2) {
      // Do Another Something else
   }
   else {
      // Opps, shouldn't ever be here
   }
}

Khris


Arjunaz78

Ok...thanks mate...i'll try it first   :)
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

SMF spam blocked by CleanTalk