Trigger Help

Post Reply
User avatar
Durandal-Thoth
Terran Factory Worker
Terran Factory Worker
Posts: 71
Joined: Wed Jul 04, 2007 4:19 pm
Location: Where the grass grows.

Trigger Help

Post 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.
Google is your FRIEND.
User avatar
Whiplash!
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 963
Joined: Wed Sep 13, 2006 4:21 pm
Location: Florida
Contact:

Re: Trigger Help

Post by Whiplash! »

I don't think randomized triggers work in Starcraft, or at least I am unaware of how they work.
¯\_(ツ)_/¯
User avatar
Grandma
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 82
Joined: Wed Jun 06, 2007 2:33 pm
Location: Tampa, Florida

Re: Trigger Help

Post 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.
Hello, mother leopard.
I have your cub.
You must protect her,
But that will be expensive...
10,000 kola nuts,
Wrapped in brown paper...
Midnight, behind the box
I'll be the hyena, you'll see.
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: Trigger Help

Post 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.
- - Lavarinth
Campaign Creations Administrator
User avatar
Lingerance
Terran Refinery Attendant
Terran Refinery Attendant
Posts: 20
Joined: Fri Aug 24, 2007 7:46 am
Location: St. Albert

Re: Trigger Help

Post 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.
Penguin?
The asterisk pony plays poker every Tuesday except after Mondays and only if the moon is pink.  His tell is he will always bluff while wearing a plaid tutu, the clouds are never monochromatic, catch them while white and fluffy, the black ones taste like robots.
User avatar
Durandal-Thoth
Terran Factory Worker
Terran Factory Worker
Posts: 71
Joined: Wed Jul 04, 2007 4:19 pm
Location: Where the grass grows.

Re: Trigger Help

Post 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.
Google is your FRIEND.
Post Reply