I've been messing around to do this one damned trigger XD another continuation of one of my posts. I haven't messed with this trigger for awhile, but I need help fixing it. This ONE problem just keeps tripping me up and I'm too lazy to solve it myself. Alright so I pick one available slot from an index and assign an icon to it. However, I don't know how to assign a "duelist" to the correct slot index. The inteface is assigned correctly, but the finalist is not. The Index of Points gets scrambled up which is the issue, so the random integer generated (ex: 3) will not match up with the actual 3rd point... So what do I do to avoid that? It's rather complex and difficult to explain, so I hope I explained well enough.
Move Finalist[int] to point x
int= int + 1
move finalist[int] to point x
So to follow the order the UI gives, the points need to "match up" if that makes sense
Should I change the duel trigger? It seems that would be the way to do it, but i'm genuinely not sure. 
-----
edit:
Also, this is on a completely different topic, however it is also an issue im having whilst making my map. Uhm, I'm trying to create a lightning, so I'm using Custom Script that allows attaching a Z coordinate to a lightning. But yeah, using this custom script crashes my world edtior. As in, I will press ok, then when I press ok again it just locks up. Lol? Is it an error with JNPG or is a syntax error causing this to crash WE?
-
Set TempInt = (Random integer number between 1 and MaxIndex)
-
Set Finalist[TempInt] = Winner[(WinnerNum - 1)]
-
Set UIWinPoint[TempInt] = UIWinPoint[MaxIndex]
-
Set MaxIndex = (MaxIndex - 1)
Move Finalist[int] to point x
int= int + 1
move finalist[int] to point x
So to follow the order the UI gives, the points need to "match up" if that makes sense

-----
edit:
Also, this is on a completely different topic, however it is also an issue im having whilst making my map. Uhm, I'm trying to create a lightning, so I'm using Custom Script that allows attaching a Z coordinate to a lightning. But yeah, using this custom script crashes my world edtior. As in, I will press ok, then when I press ok again it just locks up. Lol? Is it an error with JNPG or is a syntax error causing this to crash WE?
Code:
set udg_LightningStrings[udg_LoopInt] = AddLightningEx("DRAM",true, GetLocationX(udg_CasterLoc), GetLocationY(udg_CasterLoc), GetLocationZ(udg_CasterLoc) + 70), GetLocationX(udg_PuppetLoc[udg_LoopInt]), GetLocationY(udg_PuppetLoc[udg_LoopInt]), GetLocationZ(udg_PuppetLoc[udg_LoopInt]) +55)