Is it possible to make this event (plundering ships for profit)?

Greizer85

Emperor
Joined
Mar 7, 2009
Messages
1,210
(MGE, if it matters.)

I'm a total stranger to the Civ II event system, but I'm willing to learn if it improves my scenario (which I'm sure it will).

In seeking a balance when it comes to trade units, I opted to make them into ships (so that insantaneous transport is not possible, greatly nerfing the power of trade); I then made another line of ships that are 'pirate' vessels meant to hunt the trade ships and thus disrupt the flow of gold and science. However, it dawned on me that there's little benefit for the player should he choose the pirate path. So, the question I ask today is this:

Is it possible to make an event to the effect that every time a 'trade' vessel is plundered (i.e. destroyed), the plundering player gets assigned a modest amount of gold? If it is possible, can the amount of gold be tied into era or techs somehow? I'd want the reward to increase as the game goes along, obviously, so as to keep privateering competitive with the trading approach.

Ofc I might just have the pirate ships there for the AI to build for harassing the player; but I'd rather it be possible (and even optimal) in some situations for the human player to use them as well, which is precisely what this kind of event would accomplish.

Any help will get your name in my scenario credits, even if it turns out that this is in fact impossible. ;)

Cheers,
Greizer
 
Greizer85 said:
Is it possible to make an event to the effect that every time a 'trade' vessel is plundered (i.e. destroyed), the plundering player gets assigned a modest amount of gold?
Yes, this can be done with the UNITKILLED trigger, for example:

Code:
@IF
UNITKILLED
unit=Caravan
attacker=ANYBODY
defender=ANYBODY
@THEN
CHANGEMONEY    
receiver=TRIGGERATTACKER
amount=50

Greizer85 said:
If it is possible, can the amount of gold be tied into era or techs somehow?

That would require flags, which were introduced in ToT if I'm not mistaken. There you could use the FLAG action on a TURN or RECEIVEDTECHNOLOGY trigger, and use UNITKILLED in combination with CHECKFLAG. But maybe someone has a clever trick for MGE, who knows :)
 
Thanks a million for the help once again. :) I suppose I could've learned this by reading a tutorial for events making, but I wanted to know right away as if it wasn't possible, I wouldn't bother with events. Even now this presents a problem, as three of the techs in my scenario are named after wars; if I make other kinds of events, the player then naturally assumes that the war techs will trigger a massive invasion, and when that won't happen, they may think the scenario sloppily made. I won't be making those invasions, as representing them with the events file would be a humongous task (and still remain inaccurate, as I don't know much about the wars), and they're not really central to the goal of my scenario, which is to represent Finland's rise from an agricultural backwater to a modern, hi-tech welfare state.

There are a million other things I could use events for, though. The Depression tech could drain the player's treasury... There could be native (Sami) uprisings... I will have to study this. It seems a good thing that I bought ToT. Maybe I'll wait until it arrives and then learn the more advanced events language.
 
Back
Top Bottom