Dialog - Create a button for dialog Main Menu[Player] with the dimensions (100, 100) anchored to Top Left with an offset of (Button X Offset, Button Y Offset) setting the tooltip to "" with button text "" and the hover image set to ""
Variable - Set Dialog Button = (Last created dialog item)
Dialog - Hide (Last created dialog item) for (Player group(Player))
Dialog - Create an image for dialog Main Menu[Player] with the dimensions (100, 100) anchored to Top Left with an offset of (Button X Offset, Button Y Offset) setting the tooltip to "" using the image Assets\Textures\white32.dds as a Normal type with tiled set to false tint color White and blend mode Normal
Variable - Set Dialog Image = (Last created dialog item)
Dialog - Hide (Last created dialog item) for (Player group(Player))
------------------------------
TRIGGER
General - For each integer TmpInt from 1 to 2 with increment 1, do (Actions)
Actions
Variable - Set Button X Offset 1 = 400
Variable - Set Button Y Offset = 100
General - If (Conditions) then do (Actions) else do (Actions)
If
TmpInt == 2
Then
Variable - Set Button X Offset 1 = Button X Offset 2
Else
General - For each integer TmpInt 2 from 1 to 4 with increment 1, do (Actions)
Actions
Create Button Dialogs(Button X Offset 1, Button Y Offset, Machine Guns[TmpInt][TmpInt 2][(Picked player)], Machine Gun Images[TmpInt][TmpInt 2][(Picked player)], (Picked player))
Variable - Modify Button Y Offset: + 200
------------------------
Now for some reason, by testing out whether triggers were working or whether the action definations were working, I've concluded that the set dialog = last created dialog in the action defination isn't setting that variable for some reason. Is there any reason why?? Everything seems to be correct. Maybe its the arrays that are screwing the action defination??
Dialogs arn't showing up when I use another trigger to active it, I've tested it without hiding the dialogs and the action defination is definately creating them as well as tested the trigger that shows the dialogs and it is working, but this set variable doesn't seem to be working when I put everything together...
made a Temp Variable for the Dialogs to set to and then set it back to the variable I needed to fix it. I guess arrays dont work with action definations. So strange..
ACTION DEFINATION
Dialog - Create a button for dialog Main Menu[Player] with the dimensions (100, 100) anchored to Top Left with an offset of (Button X Offset, Button Y Offset) setting the tooltip to "" with button text "" and the hover image set to ""
Variable - Set Dialog Button = (Last created dialog item)
Dialog - Hide (Last created dialog item) for (Player group(Player))
Dialog - Create an image for dialog Main Menu[Player] with the dimensions (100, 100) anchored to Top Left with an offset of (Button X Offset, Button Y Offset) setting the tooltip to "" using the image Assets\Textures\white32.dds as a Normal type with tiled set to false tint color White and blend mode Normal
Variable - Set Dialog Image = (Last created dialog item)
Dialog - Hide (Last created dialog item) for (Player group(Player))
------------------------------TRIGGER
General - For each integer TmpInt from 1 to 2 with increment 1, do (Actions)
Actions
Variable - Set Button X Offset 1 = 400
Variable - Set Button Y Offset = 100
General - If (Conditions) then do (Actions) else do (Actions)
If
TmpInt == 2
Then
Variable - Set Button X Offset 1 = Button X Offset 2
Else
General - For each integer TmpInt 2 from 1 to 4 with increment 1, do (Actions)
Actions
Create Button Dialogs(Button X Offset 1, Button Y Offset, Machine Guns[TmpInt][TmpInt 2][(Picked player)], Machine Gun Images[TmpInt][TmpInt 2][(Picked player)], (Picked player))
Variable - Modify Button Y Offset: + 200
------------------------Now for some reason, by testing out whether triggers were working or whether the action definations were working, I've concluded that the set dialog = last created dialog in the action defination isn't setting that variable for some reason. Is there any reason why?? Everything seems to be correct. Maybe its the arrays that are screwing the action defination??
Dialogs arn't showing up when I use another trigger to active it, I've tested it without hiding the dialogs and the action defination is definately creating them as well as tested the trigger that shows the dialogs and it is working, but this set variable doesn't seem to be working when I put everything together...
guess i have to fix my own problems here...
made a Temp Variable for the Dialogs to set to and then set it back to the variable I needed to fix it. I guess arrays dont work with action definations. So strange..
can you post screenshtos of the code, I am having a little difficulty following your code, ty :)