Page 1 of 1

Trigger Help

Posted: Thu Sep 06, 2007 4:32 pm
by Durandal-Thoth
Well, I'm starting work on a mapping project in collaboration with my friend, but my friend has very little mapping experience, and no one is online at the moment that can offer me any guidance, so I'll ask here.

I've made a little Machine gun that uses the observer as an aiming reticle and just explodes a bunch of units under it for effect. Thing is though, I don't want it to just kill EVERYTHING that walks towards it. So I figured I'd try out a randomizer value, Like have it cycle through about 25 possible options for setting damage, 6-7 being kill, and the rest being a Set Hitpoint action. I know this can probably create problems as it would most likely damage, heal, re-heal, damage, then kill units under the gun, but I'm willing to settle for that.

Better then setting up an EUD trigger, anyway.

I'm not really sure how to go about the whole Randomization aspect of it though. Can someone shed some light on this for me?

And on a side note, does anyone know about setting up EUD triggers? I'd been interested with playing around with EUD conditions.

Re: Trigger Help

Posted: Thu Sep 06, 2007 4:59 pm
by Whiplash!
I don't think randomized triggers work in Starcraft, or at least I am unaware of how they work.

Re: Trigger Help

Posted: Thu Sep 06, 2007 5:25 pm
by Grandma
Durandal-Thoth wrote:
Well, I'm starting work on a mapping project in collaboration with my friend, but my friend has very little mapping experience, and no one is online at the moment that can offer me any guidance, so I'll ask here.

I've made a little Machine gun that uses the observer as an aiming reticle and just explodes a bunch of units under it for effect. Thing is though, I don't want it to just kill EVERYTHING that walks towards it. So I figured I'd try out a randomizer value, Like have it cycle through about 25 possible options for setting damage, 6-7 being kill, and the rest being a Set Hitpoint action. I know this can probably create problems as it would most likely damage, heal, re-heal, damage, then kill units under the gun, but I'm willing to settle for that.

Better then setting up an EUD trigger, anyway.

I'm not really sure how to go about the whole Randomization aspect of it though. Can someone shed some light on this for me?

And on a side note, does anyone know about setting up EUD triggers? I'd been interested with playing around with EUD conditions.
I'm not too proficient in starcraft triggering, but I'm pretty sure it'd go something like this;

Make a trigger that randomizes switches 1, 2, and 3, set to Always and preserve trigger. Then assign values for each combination.  Then it'd go:
0-0-0 -> Kill Unit
0-0-1 -> 25 Damage
0-1-1-> 30 Damage
0-1-0-> 50 Damage
1-1-1-> No damage
etc, etc.


(0 = off, 1 = on, and it's switches 1-2-3)

That's the gist of it, and that's the only way I know to do anything random in SC, although I don't really know how effective it'd be in your case.

Re: Trigger Help

Posted: Fri Sep 07, 2007 12:25 am
by Lavarinth
There was a way to make Switches act semi-random, but I don't recall at the moment, just tossing the fact out there it's possible.

Re: Trigger Help

Posted: Fri Sep 07, 2007 1:43 am
by Lingerance
When you use a trigger to adjust a switch you have four options, set it (turn it on), clear it (turn it off), toggle it (change it to whatever it isn't) and randomize it (which is probably weighted, to which one I don't know).  Also you can not do damage via triggers, you can adjust a units hit points by percentile, but you cannot damage them, possibly spawning infested terrans or the like for that damage might do though.

Re: Trigger Help

Posted: Sat Sep 08, 2007 10:55 pm
by Durandal-Thoth
 
Lingerance wrote:Also you can not do damage via triggers, you can adjust a units hit points by percentile, but you cannot damage them
Me wrote: 6-7 being kill, and the rest being a Set Hitpoint action.
I was aware of this.

I'm thinking of using death counts though. For some odd reason, switches confuse me.