im making a make and at the start of it their is a dialog 7 different choice and i cant get the buttons to work mabey someone can point out what im doing wrong. it would be a great help.
Trigger 1:
MeleeInitializationEventsGame-MapinitializationLocalVariablesConditionsActionsTrigger-RunUnitGroups(CheckConditions,Don'tWaituntilitfinishes)Camera-Panthecameraforplayer1toApperancePointover0.0secondswith100%initialvelocity,0%deceleration,andDoNotusesmartpanningCamera-Lockcamerainputforplayer1Dialog-CreateaModaldialogofsize(1500,300)at(0,0)relativetoCenterofscreenVariable-SetDialog[0]=(Lastcreateddialogitem)Dialog-Createalabelfordialog(Lastcreateddialog)withthedimensions(800,400)anchoredtoTopLeftwithanoffsetof(50,50)withthetext"Pick the race who's hotkeys you wna..."colorsettoWhitetextwriteoutsettofalsewithawriteoutdurationof2.0Variable-SetDialog[1]=(Lastcreateddialogitem)Dialog-Createabuttonfordialog(Lastcreateddialog)withthedimensions(400,50)anchoredtoTopLeftwithanoffsetof(50,100)settingthetooltipto""withbuttontext"Protoss"andthehoverimagesetto""Variable-SetDialog[2]=(Lastcreateddialogitem)Dialog-Createabuttonfordialog(Lastcreateddialog)withthedimensions(400,50)anchoredtoTopwithanoffsetof(0,100)settingthetooltipto""withbuttontext"Terran"andthehoverimagesetto""Variable-SetDialog[3]=(Lastcreateddialogitem)Dialog-Createabuttonfordialog(Lastcreateddialog)withthedimensions(400,50)anchoredtoTopRightwithanoffsetof(50,100)settingthetooltipto""withbuttontext"Zerg"andthehoverimagesetto""Variable-SetDialog[4]=(Lastcreateddialogitem)Dialog-Createabuttonfordialog(Lastcreateddialog)withthedimensions(400,50)anchoredtoTopLeftwithanoffsetof(50,150)settingthetooltipto""withbuttontext"Protoss + Terran"andthehoverimagesetto""Variable-SetDialog[5]=(Lastcreateddialogitem)Dialog-Createabuttonfordialog(Lastcreateddialog)withthedimensions(400,50)anchoredtoTopwithanoffsetof(0,150)settingthetooltipto""withbuttontext"Protoss + Zerg"andthehoverimagesetto""Variable-SetDialog[6]=(Lastcreateddialogitem)Dialog-Createabuttonfordialog(Lastcreateddialog)withthedimensions(400,50)anchoredtoTopRightwithanoffsetof(50,150)settingthetooltipto""withbuttontext"Terran + Zerg"andthehoverimagesetto""Variable-SetDialog[7]=(Lastcreateddialogitem)Dialog-Createabuttonfordialog(Lastcreateddialog)withthedimensions(1400,50)anchoredtoTopwithanoffsetof(0,200)settingthetooltipto""withbuttontext"Protoss + Terran + Zerg"andthehoverimagesetto""Variable-SetDialog[8]=(Lastcreateddialogitem)Dialog-Show(Lastcreateddialog)for(Allplayers)Trigger-RunMoveUnits(CheckConditions,Waituntilitfinishes)
What exactly are you trying to do?
I can't make any sense of your conditions:
Dialog[5]==(Lastcreateddialogitem)
Why would you look for the last created dialog item? This condition could never be true, because you're creating all the buttons in order from 1 to 8. So 5 can never be the last one created, because 6 7 and 8 still come after that.
All in Trigger 2
these conditions make no sense:
(Dialog containing (Used dialog item)) == (Last created dialog)
(Used dialog item) == Dialog[2]
these if statements should have "Used Dialog Item" instead of "Last created dialog item":
Dialog[2] == (Last created dialog item)
Dialog[3] == (Last created dialog item)
Dialog[4] == (Last created dialog item)
etc.
I think what I just said has already been said, but this might be more clear :P
maybe also add "Hide Dialog containing (Used Dialog Button) for triggering player" to the action list.
im making a make and at the start of it their is a dialog 7 different choice and i cant get the buttons to work mabey someone can point out what im doing wrong. it would be a great help.
Trigger 1:
Trigger 2:
Your second trigger is using (Last created dialog item) instead of (Used dialog item)
What exactly are you trying to do?
I can't make any sense of your conditions:
Why would you look for the last created dialog item? This condition could never be true, because you're creating all the buttons in order from 1 to 8. So 5 can never be the last one created, because 6 7 and 8 still come after that.
im trying to have 7 button that load different combination of races.
@Blaaz17: Go
All in Trigger 2
these conditions make no sense:
(Dialog containing (Used dialog item)) == (Last created dialog)
(Used dialog item) == Dialog[2]
these if statements should have "Used Dialog Item" instead of "Last created dialog item":
Dialog[2] == (Last created dialog item)
Dialog[3] == (Last created dialog item)
Dialog[4] == (Last created dialog item)
etc.
I think what I just said has already been said, but this might be more clear :P
maybe also add "Hide Dialog containing (Used Dialog Button) for triggering player" to the action list.
thanks for the help i got it working i got rid of the conditions in trigger 2 and changed from last created dialogue item to used dialog item
I was wondering if i could get some more help. Here i have two triggers and a variable
As far as I know they should work but I keep getting this error and nothing happens.
00:00:01.56 Trigger Error in 'gt_MoveUnit_Func': Could not get 'unit type' from parameter in 'sUnitCreate' (value: 0)
Can someone help me out please?