I been trying to create a trigger that when i press a dialog button it will add a new button but for every time i press the button it will create a new button at another spot up to like 4 buttons.
Ok so far i got this going:
so i got the press more then one time to create a button at another place going, but i dont know how to set it so when i destroy a button it will place the new button at that spot.
Ok so far i got this going:
Code:
Test 1
Events
Dialog - Any Dialog Item is Clicked by Player Any Player
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
Dialog Button[Test] == Dialog Button[0]
Then
Dialog - Create a Button for Dialog Main Dialog with the dimensions (200, 50) anchored to Top Left with an offset of (50, 50) setting the tooltip to "" with button text "Test 1" and the hover image set to ""
Variable - Modify Test: + 1
Variable - Set Dialog Button[Test] = (Last created dialog item)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
Dialog Button[Test] == Dialog Button[1]
Then
Dialog - Create a Button for Dialog Main Dialog with the dimensions (200, 50) anchored to Bottom Right with an offset of (50, 50) setting the tooltip to "" with button text "Test 2" and the hover image set to ""
Variable - Modify Test: + 1
Variable - Set Dialog Button[Test] = (Last created dialog item)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
Dialog Button[Test] == Dialog Button[2]
Then
Dialog - Create a Button for Dialog Main Dialog with the dimensions (200, 50) anchored to Top Right with an offset of (50, 50) setting the tooltip to "" with button text "Test 3" and the hover image set to ""
Variable - Modify Test: + 1
Variable - Set Dialog Button[Test] = (Last created dialog item)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
Dialog Button[Test] == Dialog Button[3]
Then
Dialog - Create a Button for Dialog Main Dialog with the dimensions (200, 50) anchored to Right with an offset of (50, 50) setting the tooltip to "" with button text "Test 4" and the hover image set to ""
Variable - Modify Test: + 1
Variable - Set Dialog Button[Test] = (Last created dialog item)
Else
Test 2
Events
Dialog - Any Dialog Item is Clicked by Player Any Player
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Dialog Button[1]
Then
Dialog - Destroy Dialog Button[1]
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Dialog Button[2]
Then
Dialog - Destroy Dialog Button[2]
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Dialog Button[3]
Then
Dialog - Destroy Dialog Button[3]
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Dialog Button[4]
Then
Dialog - Destroy Dialog Button[4]
Else
so i got the press more then one time to create a button at another place going, but i dont know how to set it so when i destroy a button it will place the new button at that spot.