Staredit Network

Staredit Network -> UMS Assistance -> Detecting upgrade and free space?
Report, edit, etc...Posted by DooM77 on 2006-09-13 at 07:20:28
There are two things I saw in professional maps that really shocked me. The first one is detection of upgrade from Saviour of the stars. In a very begining the map asks player to do Infantry Armor upgrade in order to start the game. And actually the game starts right after making that upgrade, not before! I tried to make out how it's done using Trigger Viever but the only I saw was something like:

Condition:
- Player 1 brings exactly one wait 170 miliseconds to location
Actions:
...

Can anyone explain it for me?

And the second thing. When I was playing Gta Classic by DEAD and tried to change my weapon near a wall I was informed that Weapon can't be changed because of lack of space? No "unit unplaceable" messages - trigger changing weapon didn't even start. It seems that amount of free space in location was checked somehow but can't even imagine detecting terrain by triggers. So how could it be done?! I'm extremelly curious!

Report, edit, etc...Posted by xmrxsiegecopx on 2006-09-13 at 08:27:15
That was done using EUD triggers. Although almost all EUD triggers are outdated, if you downgrade your SC patch, you could use some of them again. uBeR@TiOn2 has the EUD list if you will use them, and here is our very own SC Patcher. EUD information by Syphon(MM):

QUOTE(Syphon(MM) @ Jan 11 2006, 09:53 PM)
EUD = Extended Unit Death, they're an infromal name for a type of trigger (Invented/Discovered originally by DeathKnight.) that reads the RAM memory of starcraft and previously wrote to it. They're accessed in Uberation, allowing you to do such things at present like detect cooldown rate, screen position, health, location position. These things can be aplied to other uses, such as detecting space being pressed using screen position detection. Most features except for text detection have been implimented into maps. Text Detection allows you to even make your own cheats ^_^.

EUD's do not work on macs and as of currently there's no legal way to use EUD actions. (Which where much more powerful.)
You don't have to be a pro, they're alot easier to use than people amke them out to be.
[right][snapback]403677[/snapback][/right]


DEAD did that by attempting to move the unit to where your hero was (rather than creating it there). If it doesn't teleoprt to the location, the weapon change doesn't take effect, preventing a bug from happening.
Report, edit, etc...Posted by JaFF on 2006-09-13 at 08:30:55
About detecting upgrades:

The easy way is to simply make the upgrade cost N minerals, and detect when you used them (obviously for the upgrade).
The hard way is by EUD, but I don't know much about them so I won't tell you. Maybe it's even impossible with EUD pinch.gif

About Changing Weapons

It's a usual bug: if you try to replace a smaller unit with a bigger unit and the bigger unit does not fit because of terrain, it can(the bigger unit):
-Not move
-Get moved to the center of the map

That is, if you move it from a remote location.
Report, edit, etc...Posted by DT_Battlekruser on 2006-09-13 at 10:51:39
There is no editor which can read EUD triggers, however, so you will never be able to see the trigger in the map degenerated into simple form. Also, there is no current EUD Condition list for 1.14 for so you would have to downgrade your version for the time being.
Report, edit, etc...Posted by dark_templar_99 on 2006-09-13 at 18:45:02
You dont need any eud's to detect attack upgrades.

It's simple:

have a unit that's yours in a small area of the map and have an enemy there as well. Make the enemy strong enough to live on a normal shot of the main unit, then set health to 100%.

Once you upgrade to the right amount the unit will die and you will know the upgrades are complete.

It's a simple upgrade detection system that I have used in a map of my own.
Next Page (1)