Hi All,
I’m looking for some guidance on a game I’m working on
I’m sorta up to the part when I want to actually implement a story line into my game
Just wondering the best/easiest way of doing it
So far I have a class with a big switch statement that looks like
switch(strGameIndex){
case 2:
//Load a map
Game_Control.FlagMapChange("RealHouse1",-1,-1,false);
incrementIndex();
break;
case 3:
//Add the MC
if(Game_Control.WhichMap().equalsIgnoreCase("RealHouse1")){
AddPC(ConfigSettings.MainCharacterName, 9, 13, "MCSet");
Camera.SetActiveCharacter(ConfigSettings.MainCharacterName);
Camera.SetCameraFollow(ConfigSettings.MainCharacterName,true);
EntityController.SetRelations(ConfigSettings.MainCharacterName, "MC");
incrementIndex();
}
break;
}
So something is triggered then the game index is increased
A condition is checked then if true something happens and then it moves onto the next index
I can see this getting messy quickly and would like remove it from actual code.
I was also thinking of being able to have different game modes that would use a different game script.
Is this the way it should be done? Or is there better way then using a switch with a game index int.
Also will have quest system that is in another class that can be triggered from this main script
Thanks