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

How do I make a little invasion ?

rayman_piershil

Landlubber
<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> lads & mateyyys
I wanted to ask anybody to explain how I can make a little invasion in a town. That you just walk in the town and that suddenly everywhere are pirates who are killin people and guards. It has to be an encounter ( I think ) just like the patrol. I'vve tried to understand how to make an Invasion but without succes, I don't know where to start. well, that was it . plz explain to me in a (little) tutorial <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />

<img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> mateyyys and thanks in advance

Mad Jack the Pirate
 
The easiest way is to press the Numpad 9 key in the game (the "Rapid Raid" button). A bunch of enemies will come to attack you straight away. Have a look at PROGRAM\elrapido.c to see how you can tweak this attack. The attack itself is triggered by the following code in PROGRAM\seadogs.c:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// El Rapido Rapid Raid -->
case "Rapid_Raid":
    PlaySound("OBJECTS\raid.wav");
    if(Pchar.nation != FRANCE)
    {
        Rapid_Raid("soldiers", "none", 10, FRANCE, "friend", "enemy","A French infantry unit suddenly appears and attacks you!", "French Musketeer", 8, 4, 120, 360, 9, 9, 0, 80, 4, 20);
    }
    else
    {
        Rapid_Raid("soldiers", "none", 10, SPAIN, "friend", "enemy","Several Conquistadores attack you!", "Conquistador", 9, 5, 180, 400, 14, 6, 0, 100, 4, 30);
    }
break;
// El Rapido Rapid Raid <--<!--c2--></div><!--ec2-->
You can tweak this code to your liking.
 
Sure. Edit the controls in PROGRAM\CONTROLS\init_pc.c and reset the controls to default afterwards.
 
Can you explain me a little what everything means ? I would love to learn some coding to make mods <img src="style_emoticons/<#EMO_DIR#>/bounce.gif" style="vertical-align:middle" emoid=":b:" border="0" alt="bounce.gif" />
 
There is a lot of explanation about this particular code at the top of PROGRAM\elrapido.c.
 
ah I found it, thanks. But I have another question about something, how do you make a fast travel from the city to a location ? I wanted to make it that you can fast travel from the city to the inside of the fort without th option to come there by foot. Is it possible ?
 
To do that, you would need to first make the inside of the fort location, which is requires some work.

Anyway: To make such a location have a look at the PROGRAM\Locations\init files. You can find examples in Oxbay.c for the fort locations.

To add a Fast Travel icon: PROGRAM\BATTLE_INTERFACE\fast_reload_table.c .
 
thanks a lot, I finally begin to understand it (I hope <img src="style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" /> ) I have another question; Is it possible to let the characters fight only with a gun ( musket ) and just remove the sword and that they don't fight with their hands either, just the musket. Would be nice <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />

thanks a lot <img src="style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" />
 
<!--quoteo(post=157842:date=Aug 12 2006, 09:35 PM:name=Mad Jack the Pirate)--><div class='quotetop'>QUOTE(Mad Jack the Pirate @ Aug 12 2006, 09:35 PM) [snapback]157842[/snapback]</div><div class='quotemain'><!--quotec-->
thanks a lot, I finally begin to understand it (I hope <img src="style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" /> ) I have another question; Is it possible to let the characters fight only with a gun ( musket ) and just remove the sword and that they don't fight with their hands either, just the musket. Would be nice <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->
If that is possible, it won't be easy. You'd first have to figure out how to make it workin the game, then make some changes to LAi_events.c, I think. But if the characters don't have a blade, they can't block and they would be killed in no-time. So some major changes would need to be made for this to work in the game.
 
well, it would be realistic if they were killed in no time cause in the time of napoleon hundreds of men died at oncebecause of one salvo of shots. But thanks I shall try to figure out how to let them fight without a blade.
 
Simplest way: Give them their fists ("BladeX4"). Then they can fight with their fists instead of with a blade. Problem: They'll use their fists a lot and won't use their gun a lot. Once or twice at most. We should figure out how to make the AI use the guns more when they use muskets and musketoons.
 
yeah you are right, I will really try to figure something out. That abou the fist I knew already but thanks anyway
<img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> <img src="style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" />
 
Raising this one from the depts:

Maybe we could code it in so, that if you have only your fist, you CAN reload your gun.
 
PROGRAM\Loc_ai\LAi_fightparams.c:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->if(LAi_IsFightMode(chr) && CANNOT_RELOAD_WHILE_FIGHTING && CheckCharacterEquipByGroup(chr,BLADE_ITEM_TYPE) != "bladeX4")  return 0.0;<!--c2--></div><!--ec2-->Should do the trick.
 
Back
Top