Hello
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void SetCrewOnDeck(string deck)
{
ref ch;
string m;
string models[20];
ref chr = GetMainCharacter();
int nShipType = GetCharacterShipType(chr);
ref shp = GetRealShip(nShipType);
float max = shp.MaxCrew;
float cqt = GetCrewQuantity(chr);
float mx = 5.0;
models[0] = "Chard";
models[1] = "Isterling";
models[2] = "Chard3";
models[3] = "Chard3a";
models[4] = "GenresBag2";
models[5] = "pirate_8";
models[6] = "GenresChest1";
models[7] = "Chard2";
models[8] = "pirate_4";
models[9] = "pirate_1";
models[10] = "pirate_2";
models[11] = "pirate_3";
models[12] = "Ostin";
models[13] = "pirate_5";
models[14] = "pirate_6";
models[15] = "pirate_7";
models[16] = "GenresBarrel2";
models[17] = "pirate_8";
models[18] = "BigPirate";
models[19] = "corsair1_2";
if(deck=="Deck_Near_Ship_Low"){
mx = 10.0;
}
if(deck=="Deck_Near_Ship_Medium"){
mx = 15.0;
}
if(deck=="Deck_Near_Ship_Big"){
mx = 20.0;
}
if(deck=="My_Cabin_Medium"){
mx = 15.0;
models[0] = "GenresBag1";
models[1] = "GenresBarrel1";
models[2] = "GenresBottle1";
models[3] = "GenresChest1";
models[5] = "Isterling";
}
float crw = (mx/max)*cqt;
int i;
for (i=0; i < crw; i++){
ch = GetCharacter(NPC_GenerateCharacter("Rand_"+i, models
, "man", "man", 1, chr.nation, 1, false));
SetFantomParamFromRank(ch, 1, true);
ch.Dialog.Filename = "CabinCrew_dialog.c";
ch.Dialog.currentnode = "go";
LAi_warrior_DialogEnable(ch, true);
PlaceCharacter(ch, "goto", chr.location);
}
}<!--c2--></div><!--ec2-->
Now they are there. But my crewmembers wont talk with me :-/ Had i forgotten anything? I wrote the dialog-files and i think these are fine. Anyway, the crew is also not walking. How to write that? Tank you 