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.
SMOP (http://en.wikipedia.org/wiki/Small_matter_of_programming)
*** 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
}
}
Yeah, use variables.
http://www.adventuregamestudio.co.uk/actutor.htm (bottom half)
Ok...thanks mate...i'll try it first :)