Shouldn't it be // before default: ?
It checks for Shipdeck6 or shipdeck7, which i have specific locators set for already, if it's not equal to those we use a sandart set of locators, here is the whole code.
Default is used if operator doesn't match any case constant.
C:
//check deck sring from bigger to smaller decks
case "tp_deck_after_prison_deck_check":
switch(GetCharacterShipQDeck(pchar))
{
case "ShipDeck7":
LAi_QuestDelay("tp_deck_after_prison6and7", 0.0);;
break;
case "ShipDeck6":
LAi_QuestDelay("tp_deck_after_prison6and7", 0.0);
break;
default:
LAi_QuestDelay("load_deck_turks_other", 0.0);
}
break;
//Dialogue on ships deck with the crew
//Used for deck6 and deck7 pearl and similar ships
case "tp_deck_after_prison6and7":
ChangeCharacterAddressGroup(CharacterFromID("Annamaria"),GetCharacterShipQDeck(pchar),"goto","goto20");
ChangeCharacterAddressGroup(CharacterFromID("Pirates_5"),GetCharacterShipQDeck(pchar),"goto","goto11");
ChangeCharacterAddressGroup(CharacterFromID("Pirates_6"),GetCharacterShipQDeck(pchar),"goto","goto21");
ChangeCharacterAddressGroup(CharacterFromID("Mr. Gibbs"),GetCharacterShipQDeck(pchar),"goto","goto2");
DoQuestReloadToLocation(GetCharacterShipQDeck(pchar), "goto", "goto27", "dialogue_start_deck_turks6and7");
//LAi_QuestDelay("dialogue_start_deck_turks", 1.0);
break;
//To sea and now and set sail
case "dialogue_start_deck_turks6and7":
LAi_SetActorType(CharacterFromID("Mr. Gibbs"));
LAi_SetActorType(characterFromID("Annamaria"));
LAi_ActorTurnToCharacter(characterFromID("Annamaria"), pchar);
LAi_ActorTurnToCharacter(characterFromID("Pirates_5"), pchar);
LAi_ActorTurnToCharacter(characterFromID("Pirates_6"), pchar);
LAi_ActorDialog(characterFromID("Mr. Gibbs"),PChar,"",1.0,1.0);
Characters[GetCharacterIndex("Mr. Gibbs")].dialog.currentnode = "talk_jack_ship_turks";
break;
//Dialogue on ships deck with the crew
//Used for any other deck
case "load_deck_turks_other":
DoQuestReloadToLocation(GetCharacterShipQDeck(pchar), "reload", "boatr", "dialogue_start_deck_turks_other");
break;
//Dialogue on ships deck with the crew
//Used for other decks as scene should't requite anything really specific
case "dialogue_start_deck_turks_other":
PlaceCharacter(characterFromID("Annamaria"), "goto");
PlaceCharacter(characterFromID("Pirates_5"), "goto");
PlaceCharacter(characterFromID("Pirates_6"), "goto");
PlaceCharacter(characterFromID("Mr. Gibbs"), "goto");
LAi_SetActorType(CharacterFromID("Mr. Gibbs"));
LAi_SetActorType(characterFromID("Annamaria"));
LAi_ActorTurnToCharacter(characterFromID("Annamaria"), pchar);
LAi_ActorTurnToCharacter(characterFromID("Pirates_5"), pchar);
LAi_ActorTurnToCharacter(characterFromID("Pirates_6"), pchar);
LAi_ActorDialog(characterFromID("Mr. Gibbs"),PChar,"",1.0,1.0);
Characters[GetCharacterIndex("Mr. Gibbs")].dialog.currentnode = "talk_jack_ship_turks";
break;
Last edited: