| 1 |
<?xml version="1.0"?> |
| 2 |
<!DOCTYPE events> |
| 3 |
<!-- This example shows how you can manually control Rome's wage adjustments, giving more precise control of when |
| 4 |
they happen, and even taking things like difficulty into account. --> |
| 5 |
<events version="1"> |
| 6 |
<!-- START OF very easy ================================================================================== |
| 7 |
We start off with wages at 26, |
| 8 |
and then increase it by 1 once every two years, |
| 9 |
until we get to 30. --> |
| 10 |
<event> |
| 11 |
<conditions> |
| 12 |
<time check="eq" amount="0"/> <!-- "eq" = equals --> |
| 13 |
<difficulty check="eq" value="very_easy"/> |
| 14 |
</conditions> |
| 15 |
<actions> |
| 16 |
<change_rome_wages amount="26" set_to_value="true"/> |
| 17 |
</actions> |
| 18 |
</event> |
| 19 |
<!-- We make this event that increases the Rome wages repeat, |
| 20 |
that way we don't need to make a new event for every two years. --> |
| 21 |
<event repeat_months_min="24" repeat_months_max="24"> |
| 22 |
<conditions> |
| 23 |
<time check="gte" amount="24"/> <!-- "gte" = greater than or equal --> |
| 24 |
<difficulty check="eq" value="very_easy"/> |
| 25 |
<!-- We just need to remember to along with time (to only start after a year) |
| 26 |
and difficulty (only for very easy), to also check that we don't go over 30 for wages. |
| 27 |
So we only let this run if wages are still 29 or less (lte = less than or equal).--> |
| 28 |
<rome_wages check="lte" value="29"/> |
| 29 |
</conditions> |
| 30 |
<actions> |
| 31 |
<change_rome_wages amount="1" set_to_value="false"/> |
| 32 |
</actions> |
| 33 |
</event> |
| 34 |
<!-- END OF very easy ================================================================================== --> |
| 35 |
|
| 36 |
<!-- START OF easy ================================================================================== |
| 37 |
We start off with wages at 28, |
| 38 |
and then increase it by 1 roughly every 18 months, |
| 39 |
until we get to 32. --> |
| 40 |
<event> |
| 41 |
<conditions> |
| 42 |
<time check="eq" amount="0"/> |
| 43 |
<difficulty check="eq" value="easy"/> |
| 44 |
</conditions> |
| 45 |
<actions> |
| 46 |
<change_rome_wages amount="28" set_to_value="true"/> |
| 47 |
</actions> |
| 48 |
</event> |
| 49 |
<event repeat_months_min="15" repeat_months_max="21"> |
| 50 |
<conditions> |
| 51 |
<time check="gte" min="18" max="24"/> |
| 52 |
<difficulty check="eq" value="easy"/> |
| 53 |
<rome_wages check="lte" value="31"/> |
| 54 |
</conditions> |
| 55 |
<actions> |
| 56 |
<change_rome_wages amount="1" set_to_value="false"/> |
| 57 |
</actions> |
| 58 |
</event> |
| 59 |
<!-- END OF easy ================================================================================== --> |
| 60 |
|
| 61 |
<!-- START OF normal ================================================================================== |
| 62 |
We start off with wages at 30, |
| 63 |
and then increase it by 1 or 2 roughly every 18 months, |
| 64 |
we only allow 4 repeats, so we can end up anywhere between 34 and 38. --> |
| 65 |
<event> |
| 66 |
<conditions> |
| 67 |
<time check="eq" amount="0"/> |
| 68 |
<difficulty check="eq" value="normal"/> |
| 69 |
</conditions> |
| 70 |
<actions> |
| 71 |
<change_rome_wages amount="30" set_to_value="true"/> |
| 72 |
</actions> |
| 73 |
</event> |
| 74 |
<event repeat_months_min="15" repeat_months_max="21" max_number_of_repeats="4"> |
| 75 |
<conditions> |
| 76 |
<time check="gte" min="18" max="24"/> |
| 77 |
<difficulty check="eq" value="normal"/> |
| 78 |
</conditions> |
| 79 |
<actions> |
| 80 |
<change_rome_wages min="1" max="2" set_to_value="false"/> |
| 81 |
</actions> |
| 82 |
</event> |
| 83 |
<!-- END OF normal ================================================================================== --> |
| 84 |
|
| 85 |
<!-- START OF hard ================================================================================== |
| 86 |
We start off with wages at 32, |
| 87 |
and then increase it by between 1 and 4 roughly every 12 months, |
| 88 |
until we get to 42. |
| 89 |
Since we can overshoot (since we use random increases), we |
| 90 |
also add an event to set it to 42 when it overshoots that --> |
| 91 |
<event> |
| 92 |
<conditions> |
| 93 |
<time check="eq" amount="0"/> |
| 94 |
<difficulty check="eq" value="hard"/> |
| 95 |
</conditions> |
| 96 |
<actions> |
| 97 |
<change_rome_wages amount="32" set_to_value="true"/> |
| 98 |
</actions> |
| 99 |
</event> |
| 100 |
<event repeat_months_min="9" repeat_months_max="15"> |
| 101 |
<conditions> |
| 102 |
<time check="gte" min="18" max="24"/> |
| 103 |
<difficulty check="eq" value="hard"/> |
| 104 |
<rome_wages check="lte" value="41"/> |
| 105 |
</conditions> |
| 106 |
<actions> |
| 107 |
<change_rome_wages min="1" max="4" set_to_value="false"/> |
| 108 |
</actions> |
| 109 |
</event> |
| 110 |
<event> |
| 111 |
<conditions> |
| 112 |
<difficulty check="eq" value="hard"/> |
| 113 |
<rome_wages check="gte" value="43"/> |
| 114 |
</conditions> |
| 115 |
<actions> |
| 116 |
<change_rome_wages amount="42" set_to_value="true"/> |
| 117 |
</actions> |
| 118 |
</event> |
| 119 |
<!-- END OF hard ================================================================================== --> |
| 120 |
|
| 121 |
<!-- START OF very_hard ================================================================================== |
| 122 |
We start off with wages at 34, |
| 123 |
and then increase it by between 2 and 5 roughly every 12 months, |
| 124 |
until we get to 45. |
| 125 |
Since we can overshoot, we also put in an event to slowly bring |
| 126 |
it back down to 45 if it is overshot. --> |
| 127 |
<event> |
| 128 |
<conditions> |
| 129 |
<time check="eq" amount="0"/> |
| 130 |
<difficulty check="eq" value="very_hard"/> |
| 131 |
</conditions> |
| 132 |
<actions> |
| 133 |
<change_rome_wages amount="32" set_to_value="true"/> |
| 134 |
</actions> |
| 135 |
</event> |
| 136 |
<event repeat_months_min="9" repeat_months_max="15"> |
| 137 |
<conditions> |
| 138 |
<time check="gte" min="18" max="24"/> |
| 139 |
<difficulty check="eq" value="very_hard"/> |
| 140 |
<rome_wages check="lte" value="44"/> |
| 141 |
</conditions> |
| 142 |
<actions> |
| 143 |
<change_rome_wages min="2" max="5" set_to_value="false"/> |
| 144 |
</actions> |
| 145 |
</event> |
| 146 |
<event repeat_months_min="3" repeat_months_max="6"> |
| 147 |
<conditions> |
| 148 |
<difficulty check="eq" value="very_hard"/> |
| 149 |
<rome_wages check="gte" value="46"/> |
| 150 |
</conditions> |
| 151 |
<actions> |
| 152 |
<change_rome_wages amount="-1" set_to_value="false"/> |
| 153 |
</actions> |
| 154 |
</event> |
| 155 |
<!-- END OF very_hard ================================================================================== --> |
| 156 |
</events> |