• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Adding characters to game

Adamski62

HoO Team Member
3D Artist
Animator
Storm Modder
Storm Modeller
Hi

As you know I have altered the appearance of 33_Ronald and capistan , so what i'd like to know is.....

(a) If your not bothered about a character having a unique name or type,... dose it still have to be added into init c. ?

(b) If you want to give them a name and type,... is it correct adding them to init c. like this

makeref(model,Models[n]);
model.description = "He's big, he's bad, and he's let the hair grow longer, but most of all he is loyal to those who deserve it.";
model.id = "33_Ronal2";
model.FaceId = "Big_Ron" ;
model.nation = PIRATE;
model.price = 1500;
model.assigned = true;
model.ani = "33_Ronal2";
model.height = 2.10;
model.name = "Big_Ron"; <--- Dose name need adding anywhere else?
AssignModelType(isstart, &model, "Mates", 1.0);
AssignModelType(isstart, &model, OFFIC_TYPE_BOATSWAIN, 1.0);
n++;

makeref(model,Models[n]);
model.description = "Crew cut,grey trousers, red leather boots, and a shirt that fits loose and will show off some muscles! D'ye have an earing?";
model.id = "capstan";
model.FaceId = "capstan";
model.nation = PIRATE;
model.price = 1500;
model.assigned = true;
model.ani = "capstan";
model.name = "capstan";
AssignModelType(isstart, &model, "Mates", 1.0);
AssignModelType(isstart, &model, OFFIC_TYPE_CANNONEER, 1.0);

©Supposing the above is correct,.... Can they now be bought from a tailor shop and hired at tavern?

I hope it's right , if it is I can copy this to a readme file for easier setup for anyone who downloads's them to copy to their own init file.

If it is I'll put em on ftp tomorrow.

Cheers
damski
 
<!--quoteo(post=241299:date=Feb 26 2008, 01:36 AM:name=damski62)--><div class='quotetop'>QUOTE (damski62 @ Feb 26 2008, 01:36 AM) <a href="index.php?act=findpost&pid=241299"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->(a) If your not bothered about a character having a unique name or type,... dose it still have to be added into init c. ?<!--QuoteEnd--></div><!--QuoteEEnd-->Characters not added in initModels.c cannot be used by the game, except as pre-defined quest characters in the characters\init files. However, your characters should be walking around at random and be used as officers and such, so they do need adding.

<!--quoteo(post=241299:date=Feb 26 2008, 01:36 AM:name=damski62)--><div class='quotetop'>QUOTE (damski62 @ Feb 26 2008, 01:36 AM) <a href="index.php?act=findpost&pid=241299"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->(b) If you want to give them a name and type,... is it correct adding them to init c. like this<!--QuoteEnd--></div><!--QuoteEEnd-->You need a <i>.name</i> and <i>.lastname</i> attribute. If you miss one of them, you'll get a random first or lastname, if you miss both, you get a completely random name. Example:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->    makeref(model,Models[n]);
    model.description =  "Give me something with black trousers and vest, in the Russian style.";
    model.id       =  "Blaze";
    model.FaceId    = 16;
    model.nation      =  SPAIN;
    model.price       =  500;
    model.assigned    =  true;
    model.name = "Nathaniel";
    model.lastname = "Hawk";
    n++;<!--c2--></div><!--ec2-->These names also need adding to RESOURCE\INI\TEXTS\ENGLISH\characters_names.txt. However, the <i>.name</i> and <i>.lastname</i> attributes are only used in the Choose Character interface for when you want to use that model as your starting character.
As for type: Looks good to me. You can also assign your models to certain nations only with a line like <i>AssignModelTypeNation(isstart, &model, "Sailors", 0.5, PIRATE);</i>.

Also you need to change your FaceID's. If you want them to have interface pictures, you must add the textures in RESOURCE\Textures\INTERFACES\PORTRAITS. You need a number for that. Then you should use that number as the FaceID. Again see above example. Nathaniel Hawk uses the <i>face_16.tga.tx</i> files. And you must set 33_Ronal2's <i>.ani</i> attribute to <i>"33_Ronald"</i> so that he uses Ronald's animation file. You can remove capstan's <i>.ani</i> attribute altogether. He should use <i>"man"</i>, which character do by default if they don't have a <i>.ani</i> attribute set. And when you modified the model description, you need to add the new description into RESOURCE\INI\TEXTS\ENGLISH\models_description.txt as well.

<!--quoteo(post=241299:date=Feb 26 2008, 01:36 AM:name=damski62)--><div class='quotetop'>QUOTE (damski62 @ Feb 26 2008, 01:36 AM) <a href="index.php?act=findpost&pid=241299"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Can they now be bought from a tailor shop and hired at tavern?<!--QuoteEnd--></div><!--QuoteEEnd-->Yep. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
Hi
Thanks for the info & advice Pieter,

It's all working as should be now. I'll put em on the ftp for download soon.

damski.
 
Thanks very much. Looking forward to it. <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" />
 
Back
Top