First off, I want somebody to look at this:
Code:
monitor_event FactionTurnStart
and I_TurnNumber > 9
if RandomPercent = 3
if I_EventCounter CANNONS_huevent = 0
historic_event CANNONS
set_counter CANNONS_huevent 1
end_if
end_if
end_monitor
What I'm doing here, is trying to restrict the number of times the event occurs, as this event unlocks cannons. I'm working with SS 6.4. I'm wondering to see if I can do it with this logic, rather than using and I_EventCounter to regulate the firings of triggers like this. Here's what I attempted to do last time:
Code:
monitor_event FactionTurnStart
and I_EventCounter HALF_PLATE_ARMOR_huevent = 0
and I_TurnNumber > 4
if RandomPercent = 3
historic_event HALF_PLATE_ARMOR
set_counter HALF_PLATE_ARMOR_huevent 1
end_if
end_monitor
This throws up an error when firing: "don't recognise this token: and", thus messing up the whole script.
Another thing I'm doing is requiring units to have different buildings in order to train them. My logic is that the base building that being castle_barracks, barracks, stables, etc., provide base repen, and then another building, say professional_military or gunsmith, provides the capacity for the unit.
The last question is that are specific retraining units possible? Assume I want to retrain a unit like Peasant Crossbowmen from the archery_range, so that it has +1 experience. How would I go about doing that?
Here's what I think would work:
Code:
recruit_pool "Peasant Crossbowmen" 0 0 0 1 requires factions { france, hre, spain, aragon, portugal, milan, venice, papal_states, }