Im making a hotkey trainer and when it starts off you pick which race/races whose hotkeys you want to practice and after you do that it will start loading random units. The problem is that you can press any key and it will see it as correct. How can i isolate the unit being displayed. By the way when the game starts off no units are on the map and i used a unit type variable and a trigger to load a random integer from the unit type variable. Then it needs o load the next unit from the correct combination of races. A single race is not a problem.
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)
I was using the editor an all of a sudden when i tested my game the cursor disappeared but i could still click on thing and the life bars would still show up and when i clicked menu it reappered anyone else having this problem and if so how do i fix it? I also went into the game and same thin worked in login screen the after i logged in it dissappeared.
0
ok thanks so much i didnt think of looking in doodads and the arrow looks better too!
0
its the arrow under shape in the terrain editor second from the top left
P.S. i put this in the trigger section because i think the way to do it is by using an actor mesage in the trigger editor but im not sure.
0
I was just wondering if their was a way to rotate the arrow pointer so instead of it pointing down it points to the right or left?
0
bump
0
Im making a hotkey trainer and when it starts off you pick which race/races whose hotkeys you want to practice and after you do that it will start loading random units. The problem is that you can press any key and it will see it as correct. How can i isolate the unit being displayed. By the way when the game starts off no units are on the map and i used a unit type variable and a trigger to load a random integer from the unit type variable. Then it needs o load the next unit from the correct combination of races. A single race is not a problem.
0
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?
0
ok thanks
0
Is their a way to move a random unit from a region without using unit groups. Any way would be great.
0
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
0
im trying to have 7 button that load different combination of races.
0
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:
0
I was using the editor an all of a sudden when i tested my game the cursor disappeared but i could still click on thing and the life bars would still show up and when i clicked menu it reappered anyone else having this problem and if so how do i fix it? I also went into the game and same thin worked in login screen the after i logged in it dissappeared.