I am kinda new at the whole editing thing and I wanted to make a Window that will let the person select what weapons he/she wants and that will effect the speed of the unit. Soooo basically I made a dialog window but I want to make buttons that will say for example "Melee weapon" or "No Melee weapon". If the person selects No Melee weapon I want it to take away the melee weapon, in this case zealot psi blades, and increase the speed because the unit doesn't have the melee weapon.
So what I want to know is:
How to implement buttons into a dialog window that when clicked it will add/take away a weapon from a unit and increase the speed of the unit
your gonna want to set each button created to a variable and then make some triggers with event "any dialog item is clicked" and a condition "used dialog item is (your variable here)" then make actions for what it does
Thanks for the reply, but I want to know how I would make it so it would increase the speed of the unit if the player chooses to not have a melee weapon
You need to make a trigger that runs off the event "Dialog Item Is Used" with the action "Add weapon to unit"
Have your character start out with no weapons and add them with this trigger for however many weapons you want.
He does all sorts of useful tutorials about the SC2 Editor and I think the best place to start looking how to do this kind of thing would be with his Hero Unit tutorial. (He does some attribute thingy and you can change speed with that and im sure you could find a way to use the triggers to set that off somehow.) Hope this helps.
Thanks for your reply, I will check that out because I am not sure how to do exp with my heroes. Also, I did it almost the same way for the weapons. I just started him off with Psi blades and If the player clicks no weapon it will remove them.
make a new behavior in the data editor type "attribute" double click "modification +" click on the "movement" tab and change "movement speed multiplier" to something like 1.2 for 120%
I have encountered another problem I was wounding if you knew how to fix. The Menu is almost done, but I want the menu to go away when the player has clicked at least one of everything. I don't know how I would do this... I don't want to make it so that the menu would go away when you clicked one of the last buttons, because it would leave it so the others buttons don't apply. Do you have any clue how I could do this?
Edit:: Never-mind. I fixed it with a simple Integer Variable that would go up 1 with every button clicked. And then the start button would only work if The variable equaled 3
I am kinda new at the whole editing thing and I wanted to make a Window that will let the person select what weapons he/she wants and that will effect the speed of the unit. Soooo basically I made a dialog window but I want to make buttons that will say for example "Melee weapon" or "No Melee weapon". If the person selects No Melee weapon I want it to take away the melee weapon, in this case zealot psi blades, and increase the speed because the unit doesn't have the melee weapon.
So what I want to know is:
How to implement buttons into a dialog window that when clicked it will add/take away a weapon from a unit and increase the speed of the unit
your gonna want to set each button created to a variable and then make some triggers with event "any dialog item is clicked" and a condition "used dialog item is (your variable here)" then make actions for what it does
@Thebillsta: Go
Thanks for the reply, but I want to know how I would make it so it would increase the speed of the unit if the player chooses to not have a melee weapon
@Isthereanopenname: Go
You need to make a trigger that runs off the event "Dialog Item Is Used" with the action "Add weapon to unit" Have your character start out with no weapons and add them with this trigger for however many weapons you want.
For run speed its more difficult and i'm not sure how all this works. This Link is to OneTwoSC on youtube: http://www.youtube.com/user/OneTwoSC
He does all sorts of useful tutorials about the SC2 Editor and I think the best place to start looking how to do this kind of thing would be with his Hero Unit tutorial. (He does some attribute thingy and you can change speed with that and im sure you could find a way to use the triggers to set that off somehow.) Hope this helps.
@Isthereanopenname: Go
you could create a behavior for no weapon and then apply it through the trigger
@Thebillsta: Go
Once again I am new, and how would I increase speed via behavior? I haven't played around with behaviors that much.
@Kalithumos: Go
Thanks for your reply, I will check that out because I am not sure how to do exp with my heroes. Also, I did it almost the same way for the weapons. I just started him off with Psi blades and If the player clicks no weapon it will remove them.
@Isthereanopenname: Go
make a new behavior in the data editor type "attribute" double click "modification +" click on the "movement" tab and change "movement speed multiplier" to something like 1.2 for 120%
@Thebillsta: Go
Thanks you have been a HUUUGE help!!
I have encountered another problem I was wounding if you knew how to fix. The Menu is almost done, but I want the menu to go away when the player has clicked at least one of everything. I don't know how I would do this... I don't want to make it so that the menu would go away when you clicked one of the last buttons, because it would leave it so the others buttons don't apply. Do you have any clue how I could do this?
Edit:: Never-mind. I fixed it with a simple Integer Variable that would go up 1 with every button clicked. And then the start button would only work if The variable equaled 3