Unit - Create 3 Stalker for player 1 at Point 001 using default facing (No Options)
When I tested the map I was able to create Zealots, but when I tried to create Stalkers, it still made Zealots.
EDIT 2: After I changed Variable A and B to Dialog Item, both buttons create 4 Zealots and 3 Stalkers again...
EDIT 3: I got it to work after finding
General - If (Conditions) then do (Actions) else do (Actions)
I suppose I am bad at finding things...
Thanks for everyone's help!
Hi. I've recently learned to create dialogs and dialog items. I created a dialog button that spawns 4 Zealots when clicked, and destroys the dialog. Now I've been trying to create multiple buttons for that dialog, such as one that spawns 3 Stalkers when clicked, and destroying the dialog as well.
The problem is that when I try to test the map, both buttons spawn the stalker and the zealot, instead of just one, and it shows this error:
Scri: Trigger Error in 'gt_ZealotSpawn1_Func': Could not get 'triggerControl' from parameter in 'DialogControlGetDialog' (value:2)? Near line 113 in gt_ZealotSpawn1_Func() in MapScript.galaxy
Can anyone help me with this?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@SoulTaker916: Go
I changed the condition to used Dialog Item == Viariable A
So it should be easier now ^^
What conditions and actions am I supposed to put in the Dialog Item Used trigger?
EDIT: I realized that I already had 2 of those triggers and didn't notice it...
In Conditions I put:
Within Bounds - 0 <= 1 <= 1
In Actions I put:
Dialog - Destroy (Dialog containing (Used dialog item))
Unit - Create 4 Zealot for player 1 at Point 001 using default facing (No Options)
And the other one was:
Conditions:
2 <= 3 <= 3
Actions:
Dialog - Destroy (Dialog containing (Used dialog item))
Unit - Create 3 Stalker for player 1 at Point 001 using default facing (No Options)
When I tested the map I was able to create Zealots, but when I tried to create Stalkers, it still made Zealots.
EDIT 2: After I changed Variable A and B to Dialog Item, both buttons create 4 Zealots and 3 Stalkers again...
EDIT 3: I got it to work after finding General - If (Conditions) then do (Actions) else do (Actions) I suppose I am bad at finding things... Thanks for everyone's help!
How do I find "(Last created dialog item)" in the Set Variable A = ?
And what is "dialog item used" and how do I find it?
Sorry if I seem extremely bad at using the map editor.
Hi. I've recently learned to create dialogs and dialog items. I created a dialog button that spawns 4 Zealots when clicked, and destroys the dialog. Now I've been trying to create multiple buttons for that dialog, such as one that spawns 3 Stalkers when clicked, and destroying the dialog as well. The problem is that when I try to test the map, both buttons spawn the stalker and the zealot, instead of just one, and it shows this error:
Scri: Trigger Error in 'gt_ZealotSpawn1_Func': Could not get 'triggerControl' from parameter in 'DialogControlGetDialog' (value:2)? Near line 113 in gt_ZealotSpawn1_Func() in MapScript.galaxy
Can anyone help me with this?