basically, this is how i got it i am wondering if it possible to use a Int Array inside Custom Script on a Loop
So i want to set it to show custom UI text of the number that LeftInt Randomly Sets to
So Rolls 1 to 15, and gets a 9 so want it to show the Text of GBLeftTextC[08] as custom UI Text goes from [00 to 14] Hence the - 1 to register the correct one to show, Has to be Array due to 7 different players, and want it different per player for it to show.
So i want to set it to show custom UI text of the number that LeftInt Randomly Sets to
So Rolls 1 to 15, and gets a 9 so want it to show the Text of GBLeftTextC[08] as custom UI Text goes from [00 to 14] Hence the - 1 to register the correct one to show, Has to be Array due to 7 different players, and want it different per player for it to show.
-
For each (Integer A) from 1 to 7, do (Actions)
-
Loop - Actions
-
-------- Left Start --------
-
Set VariableSet GBPlayerSet = (Player(((Integer A) - 1)))
-
Set VariableSet GBLeftInt[(Player number of GBPlayerSet)] = (Random integer number between 1 and 15)
-
Custom script: if (GetLocalPlayer() == udg_GBPlayerSet) then
-
Custom script: call BlzFrameSetVisible(GBLeftTextC[udg_GBLeftInt[bj_forLoopAIndex - 1]], true)
-
Custom script: endif
-
-
Last edited: