I've attached a map with some trigger ideas in it. It might not be the ideal method for what you're after, but this works. Of course the triggers will need to fiddled with, but you should be able to get the basic idea of what I was trying to do. Whatcha think?
I'm having a wee problem with the game variants tab from my map. Whenever my campaign dependencies bug out (which I've just found out how to fix now) any game variant I had attached to the game will lose their names, descriptions, custom name and custom mode name. The attributes are still listed though, but I can't test it to see if it works in game atm because when I try to log into bnet to publish the map it rejects my login and comes up with an error "unknown[112]" even though I can log into sc2 no worries. Any suggestions on all this?
Unfortunately, I was still unsure as to what you're after, so I just made the triggers replicate exactly what was happening in the test map. I might take another look at it later.
So when a Hero he dies he is reincarnated, switching between two forms each time he does so?
How about you define a set of variables for each player? E.g One integer array called "hero" and a second called "form_state"
Event - Unit dies
Conditions - Unit belongs to group "hero_group"
Local variables - "id"
Actions - For each integer 1 to 3 (increasing in steps of 1)
If (triggering unit = "hero", Index "id") AND ("form_state", Index "id" = 1)
Then - Create unit at point, type "hero_form_2"
Else - Create unit at point, type "hero_form_1"
Please excuse my pseudo-code :) Am I barking up the right tree? :P
0
Hot damn, that looks sweet! Nice work :D
0
I've attached a map with some trigger ideas in it. It might not be the ideal method for what you're after, but this works. Of course the triggers will need to fiddled with, but you should be able to get the basic idea of what I was trying to do. Whatcha think?
0
Hi everyone.
I'm having a wee problem with the game variants tab from my map. Whenever my campaign dependencies bug out (which I've just found out how to fix now) any game variant I had attached to the game will lose their names, descriptions, custom name and custom mode name. The attributes are still listed though, but I can't test it to see if it works in game atm because when I try to log into bnet to publish the map it rejects my login and comes up with an error "unknown[112]" even though I can log into sc2 no worries. Any suggestions on all this?
Edit: I managed to get it working. I just follow the instructions here: http://forums.sc2mapster.com/development/editor-bugs-and-feedback/5275-possible-fix-for-campaign-dependency-bug/#posts to fix the dependencies up, then I restarted my computer, and when it was done both the game variant bug and the connection issues were resolved. I'll just leave this post here for prosperity.
0
@ST4RKiLL3R: Go
Thanks Star :) I'm actually working on a map atm and finding that my triggers are becoming a bit convoluted, so I'll give it a try.
0
Unfortunately, I was still unsure as to what you're after, so I just made the triggers replicate exactly what was happening in the test map. I might take another look at it later.
0
Ok, try this. This what you after?
0
So when a Hero he dies he is reincarnated, switching between two forms each time he does so?
How about you define a set of variables for each player? E.g One integer array called "hero" and a second called "form_state"
Event - Unit dies Conditions - Unit belongs to group "hero_group" Local variables - "id" Actions - For each integer 1 to 3 (increasing in steps of 1) If (triggering unit = "hero", Index "id") AND ("form_state", Index "id" = 1) Then - Create unit at point, type "hero_form_2" Else - Create unit at point, type "hero_form_1"
Please excuse my pseudo-code :) Am I barking up the right tree? :P