[Solved] Another Looping Problem
EDIT: Nevermind!! I guess after toying around a bit I managed to figure out how to do it. Thanks to those who helped! Heres what it is now, so its solved.
EDIT: Nevermind!! I guess after toying around a bit I managed to figure out how to do it. Thanks to those who helped! Heres what it is now, so its solved.
-
count civ happiness
-

Events
-

Conditions
-

Actions
-


For each (Integer A) from 1 to 102, do (Actions)
-



Loop - Actions
-




Player Group - Pick every player in playingplayers and do (Actions)
-





Loop - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Owner of village[(Integer A)]) Equal to (Picked player)
-








(village[(Integer A)] is alive) Equal to True
-
-







Then - Actions
-








Set stockhappiness[(Player number of (Picked player))] = ((stockhappiness[(Player number of (Picked player))] + villagehappiness[(Integer A)]) + 0)
-
-







Else - Actions
-








Do nothing
-
-
-






Set civhappiness[(Player number of (Picked player))] = stockhappiness[(Player number of (Picked player))]
-






Multiboard - Set the text for (Last created multiboard) item in column 2, row (Player number of (Picked player)) to ((String(cities[(Player number of (Picked player))])) + Villages)
-






Multiboard - Set the text for (Last created multiboard) item in column 4, row (Player number of (Picked player)) to (String(civhappiness[(Player number of (Picked player))]))
-
-
-
-
-


For each (Integer A) from 1 to 16, do (Actions)
-



Loop - Actions
-




Set stockhappiness[(Integer A)] = 0
-
-
-
-
Last edited:
