Currently Im working on a map where I need to keep track of whos allied to who, and to make things a lot easier I am trying to use 2d arrays which i have only recently heard about. This is my attempt, It may not be standard procedure for making it but I can t do the math to figure if it will work or bug.
Here goes. My 2d global variable is allied (boolean) [100]
Here goes. My 2d global variable is allied (boolean) [100]
-
allying
-
Events
-
Dialog - bla bla bla a button is clicked for _ dialogue is clicked by a player (1-10)
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to The right button
-
-
Then - Actions
-
Set allied[(((Player number of (Triggering player)) x 10) + ((Integer A) - 1))] = True
-
-
Else - Actions
-
-
-
-
Dialog - Clear bla bla bla
-
-