Hello all.
I have problem with Random Percent
Spoiler Alert, click show to read:
declare_counter farms
monitor_event FactionTurnStart FactionIsLocal
historic_event field_farm true
terminate_monitor
end_monitor
monitor_conditions I_EventCounter field_farm_accepted = 1
console_command add_money -3000
set_counter farms 1
set_event_counter field_farm_accepted = 0
end_monitor
monitor_conditions I_EventCounter field_farm_declined = 1
set_event_counter field_farm_declined = 0
end_monitor
monitor_event FactionTurnStart FactionIsLocal
and I_CompareCounter farms = 1
if I_CompareCounter farms = 1
and RandomPercent <= 20
and RandomPercent >= 0
historic_event field_VeryBad
console_command add_money -7641
set_counter farms 2
end_if
if I_CompareCounter farms = 1
and RandomPercent <= 40
and RandomPercent >= 20
historic_event field_Bad
console_command add_money -3245
set_counter farms 2
end_if
if I_CompareCounter farms = 1
and RandomPercent <= 60
and RandomPercent >= 40
historic_event field_normal
set_counter farms 2
end_if
if I_CompareCounter farms = 1
and RandomPercent <= 80
and RandomPercent >= 60
historic_event field_good
console_command add_money 9255
set_counter farms 2
end_if
if I_CompareCounter farms = 1
and RandomPercent <= 100
and RandomPercent >= 80
historic_event field_Verygood
console_command add_money 14214
set_counter farms 2
end_if
end_monitor
But there is such chance that can not drop out not 1 events. Why?, help![]()




Reply With Quote






