• 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!

fight quest

Zozogh2

Landlubber
Hello
I created a new quest with a fight at the end, but when the fight is finisch, the guards attack me and the citizens run out.
Help me please
 
Probly one O' your mates slashed a citezen ur two dur'n yer fight,so thats why guards attacked ye mate,best to have fight scenes outside O' towns ter avoid that <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
When you create the people for you to fight, make sure you create a new LAI group for them, otherwise the guards will be allied to them and not like your fighting them.
 
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Probly one O' your mates slashed a citezen<!--QuoteEnd--></div><!--QuoteEEnd-->
yes but I have no mate with me

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->make sure you create a new LAI group for them<!--QuoteEnd--></div><!--QuoteEEnd-->
My ennemi are "LAi_SetWarriorType(ch);" that not work ?!
Create a new LAI type, that is hard, no ?
 
<!--QuoteBegin-Zozogh2+Jul 11 2005, 09:21 PM--><div class='quotetop'>QUOTE(Zozogh2 @ Jul 11 2005, 09:21 PM)</div><div class='quotemain'><!--QuoteEBegin--><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Probly one O' your mates slashed a citezen<!--QuoteEnd--></div><!--QuoteEEnd-->
yes but I have no mate with me

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->make sure you create a new LAI group for them<!--QuoteEnd--></div><!--QuoteEEnd-->
My ennemi are "LAi_SetWarriorType(ch);" that not work ?!
<div align="right">[snapback]123033[/snapback]</div>
<!--QuoteEnd--></div><!--QuoteEEnd-->
That's the LAI TYPE, the way in which they move and behave. For a new group just add this line:

LAi_group_MoveCharacter(ch, "zozoghs_enemies");
 
Nope. If the group's not yet created, it will (I believe) be neutral to everyone, with the default look/hear radii.
There is the function LAi_Group_Register() though, so maybe that -should- be done when you use Move_Char for a new group.

However, even in Akella's stock code, they use Move_Char to groups that don't yet exist (see quests_reaction.c, case "Story_FightingInGreenfordPort", where British soldiers are set to group "ENGLAND_PORT_SOLDIERS" which is nowhere else defined).
 
Back
Top