i have submenus on my command center, and in each submenu i have an assortment of unit icons. i want a building to be spawned when the respective unit is clicked. ex.) i click on the marine unit picture>certain amount of money is subtracted>building is spawned in correct area if no building is there first. lol, how should i go about this, i looked through triggers, but there is no "on click" or something like that? or am i going about this wrong and need to do this through data editor?
i did it like creating a own upgrade, like a dummy that basically does nothing but getting researched (set time to 0 and its instant, set money like for an upgrade etc..)
after that you create the trigger like
that doesn't really help me. all my buttons are in submenus. so if i click submenu 1>marine picture... i need to spawn a building... im so confused X-|
you create a dummy upgrade, and an ability for it.
you add the ability to whatever you have your submenu and buttons etc. on and tell the button (like your marine picture) to use ability command -> that created dummyupgrade.
with triggers you do then: "if upgradeprogress on whatever you have your marine picture on is complete" with condition "triggering progress update = dummyupgrade" then as action you execute your trigger.
that sounds like what im trying to do patchone, but i am very very confused. i think you want me to select ability command from the command card thing for my marine picture. but how do i make a dummy upgrade. im new to this.
okay, so here's the problem:
i have submenus on my command center, and in each submenu i have an assortment of unit icons. i want a building to be spawned when the respective unit is clicked. ex.) i click on the marine unit picture>certain amount of money is subtracted>building is spawned in correct area if no building is there first. lol, how should i go about this, i looked through triggers, but there is no "on click" or something like that? or am i going about this wrong and need to do this through data editor?
please help, thx :)
yeah i had the same problem, its kinda weird..
i did it like creating a own upgrade, like a dummy that basically does nothing but getting researched (set time to 0 and its instant, set money like for an upgrade etc..)
after that you create the trigger like
works pretty good for me.
that doesn't really help me. all my buttons are in submenus. so if i click submenu 1>marine picture... i need to spawn a building... im so confused X-|
@NotDeadYet3: Go
You want the Ability used event.
Example of the event I use to display the Character Sheet of my map:
Unit - Any Unit uses Character Sheet at Generic3 - Execute stage (Ignore shared abilities)
looks like you dont get it..
you create a dummy upgrade, and an ability for it.
you add the ability to whatever you have your submenu and buttons etc. on and tell the button (like your marine picture) to use ability command -> that created dummyupgrade.
with triggers you do then: "if upgradeprogress on whatever you have your marine picture on is complete" with condition "triggering progress update = dummyupgrade" then as action you execute your trigger.
that works 100% for what you need
@PatchOne: Go
that sounds like what im trying to do patchone, but i am very very confused. i think you want me to select ability command from the command card thing for my marine picture. but how do i make a dummy upgrade. im new to this.
how can you tell the trigger which player pushed that button?