Hi all, I've just familiarised myself with the Galaxy Editor and was wondering how i would go about creating a trigger that starts a timer when any players unit enters it, and stops the timer when another players unit enters or there are no units present. I am trying to create a King of the hill ffa map. Thanks
I will make some triggers that counts the units of each players on the hill, then a trigger that adds points every 0.1 seconds or so if a player is the only one on the hill.
Ive made it work so that when any unit enters the timer starts and when any unit leaves the timer pauses, but i need to now find a way to make it so that if there are no units it present in the area it will pause the timer and if there are any units present it will start again.
Dont worry. I was being a noob. Ok so ive got everything working apart from the death counter.
Basically when a creature dies in region 1 i want it to pick it up with the following:
EVENT - Any Unit Dies
Actions - Owner of triggering unit = # Variable modify hill count: -1 and if hill count goes below 1 it should stop counting, but for some reason it doesnt. If anyone could shed some light onto this then please let me know.
If done properly the hillcount should never go below zero, I think your problem is that you need a hillcount for every player. You need to make more variables or select "Array" for the variable. Take a look at the screenshots I posted a while ago, that should cover all you need to know.
Oh im not using points. Im making it so when a players timer reaches zero they win, but the timer resets if they havent been in the hill for 10 minutes.
You are using a point to determine if a unit enters or leaves the hill, but a region for when a unit dies. I would check if the region covers the circle with radius 4 around point001, because it should work this way.
Also, I would delete the Timer Pause triggers and include em in the Leave Hill and Die Hill triggers. Same goes for the Timer Start triggers and the Enter Hill triggers actually.
Oh my god i literally love you. That problem has been bugging me for like 2 days lol. Sorted that. I will post images of the Full script for anyone who wants to use it themselves shortly, as well as give info on my maps name so you can try it for yourself.
Ok. So here is my finished workign King of the Hill script written in the Galaxy editor. If you are copying or modifying this script you should note that points and region as specified in the code must be placed at will around the hill.
Ah i found a problem with the win timer expiry method.if victory is achieved by player one players 2 and 3 need to achieve defeat using the same action but different parameters. and so on for each potential win condition.
When any of you have a working King of the Hill map, can you get me a copy of the map file? I have a half dozen King of the Hill style maps for StarCraft (our group never released them publicly) that I would like to port to StarCraft II, and if I have a map and triggers, I would be able Publish some real winners... Thanks!
I will upload a map with my triggers and some explanation tomorrow. I haven't worked on my map for a while but let's hope you bring forth some good king of the hill chaos ^^.
Hi all,
I've just familiarised myself with the Galaxy Editor and was wondering how i would go about creating a trigger that starts a timer when any players unit enters it, and stops the timer when another players unit enters or there are no units present. I am trying to create a King of the hill ffa map.
Thanks
86.150.54.xxx
I would appreciate such a set of triggers too. I am tinkering around so maybe I will get to something ^^.
83.86.37.xxx
I will make some triggers that counts the units of each players on the hill, then a trigger that adds points every 0.1 seconds or so if a player is the only one on the hill.
83.86.37.xxx
Ive made it work so that when any unit enters the timer starts and when any unit leaves the timer pauses, but i need to now find a way to make it so that if there are no units it present in the area it will pause the timer and if there are any units present it will start again.
86.150.54.xxx
Ow cmon what a crap forum, I can't post my triggers, it says "Your post appears to be spam, too bad (Errno 2).
Well then. I have uploaded some screenshots:
http://s146.photobucket.com/albums/r277/SodkaR/Capture.jpg
http://s146.photobucket.com/albums/r277/SodkaR/Capture2.jpg
http://s146.photobucket.com/albums/r277/SodkaR/Capture3.jpg
http://s146.photobucket.com/albums/r277/SodkaR/Capture4.jpg
Haha. Mine is a lot simpler than that. This forum is crap. I will continue working on it and post the final product here shortly
86.150.54.xxx
Ye it's possible to do it a lot simpler, I just found the condition Units in region matching conditions ^^.
But it works :P
How do i use conditions properly :-p
86.150.54.xxx
What do you mean exactly? The condition of my previous post?
Dont worry. I was being a noob. Ok so ive got everything working apart from the death counter.
Basically when a creature dies in region 1 i want it to pick it up with the following:
EVENT - Any Unit Dies
Actions - Owner of triggering unit = #
Variable modify hill count: -1
and if hill count goes below 1 it should stop counting, but for some reason it doesnt. If anyone could shed some light onto this then please let me know.
86.150.54.xxx
If done properly the hillcount should never go below zero, I think your problem is that you need a hillcount for every player. You need to make more variables or select "Array" for the variable. Take a look at the screenshots I posted a while ago, that should cover all you need to know.
http://s146.photobucket.com/albums/r277/SodkaR/Capture.jpg
http://s146.photobucket.com/albums/r277/SodkaR/Capture2.jpg
http://s146.photobucket.com/albums/r277/SodkaR/Capture3.jpg
http://s146.photobucket.com/albums/r277/SodkaR/Capture4.jpg
I have a hill count for each player and a buffer to stop it going below zero. It just doesnt seem to register when units die within the hill.
86.150.54.xxx
Oh im not using points. Im making it so when a players timer reaches zero they win, but the timer resets if they havent been in the hill for 10 minutes.
86.150.54.xxx
Could you post your triggers?
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=DieHill1.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=EnterHill.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=LeaveHill.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=TimerPause.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=TimerStart.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=UnitDieBuffer.png
As you can see I have three hill counters and 3 Die Hill methods. They are the same but the player scanner differs in each.
86.150.54.xxx
You are using a point to determine if a unit enters or leaves the hill, but a region for when a unit dies. I would check if the region covers the circle with radius 4 around point001, because it should work this way.
Also, I would delete the Timer Pause triggers and include em in the Leave Hill and Die Hill triggers. Same goes for the Timer Start triggers and the Enter Hill triggers actually.
Awesome. Thanks mate. I will give this a try now and post results.
86.150.54.xxx
Oh my god i literally love you. That problem has been bugging me for like 2 days lol. Sorted that. I will post images of the Full script for anyone who wants to use it themselves shortly, as well as give info on my maps name so you can try it for yourself.
86.150.54.xxx
No problem!
Ok. So here is my finished workign King of the Hill script written in the Galaxy editor. If you are copying or modifying this script you should note that points and region as specified in the code must be placed at will around the hill.
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=BossSpawn.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=DieBuffer1.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=DieBuffer2.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=DieBuffer3.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=DieHill.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=EnterHill.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=GuardianDieBuffer.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=GuardianSpawn.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=DieHill.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=MeleeInitialization.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=ResetTimerExpiry.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=StopTimer.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=LeaveHill.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=Variables.png
http://s957.photobucket.com/albums/ae55/Satchelmouth/?action=view¤t=WinTimerExpiry.png
86.150.54.xxx
Ah i found a problem with the win timer expiry method.if victory is achieved by player one players 2 and 3 need to achieve defeat using the same action but different parameters. and so on for each potential win condition.
86.13.65.xxx
When any of you have a working King of the Hill map, can you get me a copy of the map file? I have a half dozen King of the Hill style maps for StarCraft (our group never released them publicly) that I would like to port to StarCraft II, and if I have a map and triggers, I would be able Publish some real winners... Thanks!
Overmind
(Game designer...)
24.16.107.xxx
I will upload a map with my triggers and some explanation tomorrow. I haven't worked on my map for a while but let's hope you bring forth some good king of the hill chaos ^^.
Edit: To heck with it I will upload it now!
http://sc2.nibbits.com/maps/view/134567/king-of-the-hill
Got any questions, feel free to ask.
hermes bags, hollister clothing store, louboutin outlet, abercrombie and fitch, birkin bag, air max 95, michael kors outlet online, gucci handbags, mont blanc, oakley sunglasses cheap, ugg boots, michael kors outlet, jordan retro, north face jackets, burberry handbags, airmax-90.in.net, fake oakleys, jordan shoes, ray ban sunglasses, air max 90, christian louboutin, cheap oakley sunglasses, cheap-jordans.in.net, uggs outlet, reebok shoes, oakley store, red bottom shoes, ralph lauren polo, christian louboutin shoes, yogapants.eu.com, hermes handbags, jimmy choo, burberry factory outlet, tory burch outlet online, ray ban outlet, cheap gucci, ralph lauren outlet online, reebok-shoes.net, rolex replica, tory burch outlet, yoga pants, hollister, michael kors outlet online, jimmy choo outlet, air-jordan.in.net, oakley sale, polo ralph lauren, burberry outlet online, gucci outlet, nike air max, oakley vault, gucci handbags, polo ralph lauren outlet, burberry, gucci outlet online, nike air max 2015, coach-outlet-store.in.net, ray ban sunglasses, oakley sunglasses outlet, uggs, cheap oakley sunglasses, chanel bags, ugg boots clearance, jordansretro.in.net, toms shoes, rolex watches for sale, uggs on sale, replica watches, ugg boots, cheap oakley sunglasses, burberry outlet, michael kors outlet, nike shoes, airmax-95.in.net, christian louboutin outlet, tory burch outlet, burberry sale, omega watches, oakley glasses, air max 2015, uggs outlet online, oakley sunglasses wholesale, lululemon, oakley outlet, uggs, true religion, michael kors, oakley sunglasses, cheap sunglasses, lululemon.com.co, oakley sunglasses, michael kors outlet online sale, new balance shoes, nike free 5.0, fake rolex, burberry outlet online, new balance, ugg outlet, gucci belts, omega--watches.us.com, uggs on sale, oakley sunglasses cheap, tory burch, michael kors outlet, wedding dresses, true religion outlet, rolex replica watches, replica rolex, ray ban sunglasses, abercrombie, rolex watches, michael kors, gucci bags, true religion outlet, michael kors handbags, nike-shoes.in.net, nike free, ralph lauren outlet, oakley sunglasses, chanel handbags, nike free run, coach outlet, michael kors, polo ralph lauren, michael kors handbags, oakley vault, discount oakley sunglasses, jimmy choo shoes, uggs on sale, uggs outlet, burberry outlet, michael kors outlet online sale, sunglasses outlet, wedding--dresses.net, air jordan, cheap-jordan-shoes.net, hermes birkin, true religion jeans, cheap oakley sunglasses, north face outlet online, oakley sunglasses cheap, polo ralph lauren outlet, cheap oakley, rolex watch, north face outlet, nikeshoesinc.net, gucci outlet, nike shoes, nike mercurial, tory burch outlet online, hermes belt, toms outlet, air max, ralph lauren outlet, oakley vault, burberry, ugg boots clearance, hollister clothing, polo ralph lauren outlet online, louboutin, michael kors, nikefree-5.com, michael kors outlet online, mont blanc pens, insanity workout, gucci shoes, polo outlet, cheap jordans, new balance outlet, uggs outlet, louboutin shoes, ray ban sunglasses outlet