This is driving me insane... Help me with a UMS trigger!

Post Reply
lobski
Terran Academy Student (50k mineral debt)
Terran Academy Student (50k mineral debt)
Posts: 5
Joined: Wed Aug 20, 2008 2:59 am

This is driving me insane... Help me with a UMS trigger!

Post by lobski »

Hi, I'm having a tough time trying to fix something in a UMS map... Please help!

I'm trying to fix an exploit in a Random Unit Wars map.

Overview of map:
Once the the map starts, you are only given a civilian (Leader) with 9999HP. There is also a timer counter. Every time this counter reaches zero, Player 8 (Neutral) will spawn a random unit next to your civ, and it will be instantly turned into your own unit. The objective of the map is to kill other civilian leaders.

Now, since the units spawn next to your civ, players have been exploiting this. If you place your civilian in a transporter, or near a cliff where ground units can't be placed and the counter hits zero, the game will give the "Cannot create unit" error, and cycle through the random units until it lands on an air unit. Players can exploit this, so that they ONLY get air units. Big exploit. I want to fix this.

Perhaps its possible to "Create unit" at a UNIT and not a LOCATION? This might fix the problem.

Also, the map contains this "Location 63" that may be a solution if I can work with it, but its absolutely no where to be found in the map... I deleted all the other locations, change terrain, etc, but this Location 63 NOWHERE to be found!

So, can anyone help me out?


Here is the code:
Actual map file: http://absolutely-corrupt.com/uploads/r ... loited.scm
User avatar
poiuy_qwert
Terran Goliath Dome Polisher
Terran Goliath Dome Polisher
Posts: 116
Joined: Sun Jun 15, 2008 5:06 pm
Contact:

Re: This is driving me insane... Help me with a UMS trigger!

Post by poiuy_qwert »

Code: Select all

Conditions:
- Timer reaches 0
Actions:
- Create the unit you want at a location somewhere on the map you know will not be blocked (so make an area specifically for it)
- Reset timer

Conditions:
- Bring a unit to the location above
Actions:
- Move unit at the location above to the location following the civ
- Preserve Trigger
What happens is it will create the unit with no problem because its not blocked, then tries to move the unit to where the civ is. If the unit can't be moved to where the civ is it just stays there, and since the trigger is preserved, it will keep trying to move the unit untill it can be moved.
Last edited by poiuy_qwert on Thu Sep 25, 2008 9:48 am, edited 1 time in total.
[align=center][url=http://www.modcrafters.com][imgwh 400x75]http://www.modcrafters.com/images/sig_logo.png[/imgwh][/url]
[url=http://www.modcrafters.com/wiki/index.php?title=PyMS]PyMS[/url] ([url=http://www.broodwarai.com/forums/index.php?showforum=40]Forums[/url]/[url=http://www.campaigncreations.org/forum/index.php?topic=877.0]Local[/url]) | [url=http://www.broodwarai.com/forums/index.php?showtopic=709&view=getnewpost]ProTRG[/url] ([url=http://www.campaigncreations.org/forum/index.php?topic=2214.0]Local[/url]) | [url=http://www.staredit.net/topic/4540/]LocUnlock[/url][/align]
Post Reply