Improved Python Event System (Spawning Hostile Units) [IMPLEMENTED]

Hi guys, I consider the "Python System Enhancement" for "Spawning Hostile Units" to be implemented and tested :)
(by the way, it also allows easy "Spawning of own Units" near another Unit, City or Plot)
  • System works :c5plus:
  • various helper methods available :c5plus:
  • Examples given how it is utilized :c5plus:
All that is needed now is that some people are motivated to create more events with it. :)
 
I implemented another small example of the System.
Slave Hunter offers Service

This time it is not spawning Hostiles, but checking for them on adjacent Plots.
(In this case it is checking for
barbarian Slaves / Native Slaves / Criminals adjacent to a City.)

Civ4ScreenShot0002.JPG
Civ4ScreenShot0003.JPG

Civ4ScreenShot0006.JPG
 
Since I am still not 100% fit to implement something big and more complex I am going to impelement a few more events using the "Spawning Hostiles" capabilities.
So the next days I will most likely implement stuff like this, because they are simple enough to finish each within about an hour or so:
  • Wagon Train being attacked by Criminals
  • Whaling Ship being attacked by a Whale
  • Ranger being attacked by a Bear
  • Criminal stealing from town treasury and fleeing
  • Pasture being attacked by Wolfes
  • ...
 
I know it might annoy you, but I noticed a few typos..

From: Mylord, a slave hunter has heared

To: My lord, a slave hunter has heard

.........................

From: Our militia can handle this as well

To: Our militia can handle this.

(just sounds better)
.....................

Our ranger is on his patrol throught the forests

Typo: through

................

From: After the dead of her father a milkmaid

To: After the death of her father a milkmaid

Everything else seems good. Just pointing it out in case you wanted to do a quick correction.
 
Thanks, I have corrected the spelling errors. :thumbsup:

Problem is that I am currently still in pain when I sit too long.
Thus I am also not 100% concentrated when I am writing texts.

@Kendon will probably take a look at my texts anyways at some point and write something more atmospheric. :)
 
Great work on those events, Ray! :thumbsup:
Thanks. :)
I wanted to make use of the system after I had implemented it.

But I am mainly just showcasing what the enhanced "Python Event System" can do with "Spawning Hostiles". :)
Hoping to inspire some new modders to also start using the system - it is really easy to use once you take a look at the examples.

It would really be awesome if we had more modders creating events. :)
Those small events add a lot to the flavour and atmosphere of the mod.
 
Hmmm ... I kind of have run out of good stories delivering good gameplay with such "Spawning Hostiles Events". :think:
Well, maybe one of us will still have nice event ideas later on or in the future. :dunno:

------

Some ideas I have abandoned because they would simply not be fun from a gameplay perspective.
(Players would most likely heavily complain of the event being unfair or simply save scum whenever they get the event.)

e.g. stuff like this is not fun:
(Because just losing a Unit is simply punishing and annoying.)
  • Mutiny of a Ship (thus turning hostile)
  • Desertion of a Combat Unit (during e.g. WOI)
------

But if you have another good story for such an event, let us know. :thumbsup:
If it is good gameplay and little effort, we may implement it.
 
Last edited:
Top Bottom