Staredit Network

Staredit Network -> UMS Assistance -> Detecting Upgrades
Report, edit, etc...Posted by Lord-Omega on 2006-12-04 at 10:56:15
Ok, for my Alpha Squad map I want to make it when you get a Upgrade the Computer units in your squad get the same upgrade? How can I do this if possible?
Report, edit, etc...Posted by CheatEnabled on 2006-12-04 at 12:09:41
I don't think this is possible, though maybe you could EUD it into your map.
Report, edit, etc...Posted by spinesheath on 2006-12-04 at 12:29:58
Not possible with upgrades, but with abilities (just give one unit that has that upgrade over to the other player)
Report, edit, etc...Posted by Ultramilkman on 2006-12-04 at 19:44:40
You can calculate the time it takes for a cpu under a ai script to get an upgrade, and when the human players wants to upgrade, they have to build whatever (engennering bay) the cpu will be upgrading already.
Report, edit, etc...Posted by green_meklar on 2006-12-04 at 19:53:11
EUDs might be able to do this, although I don't know as I haven't used them myself. Other than that, all I can suggest is some kind of detection system by which a unit somewhere else on the map takes a certain amount of time to kill another unit (the time decreasing with more upgrades). However, this would get extremely complicated with large numbers of upgrades.
Report, edit, etc...Posted by Heimdal on 2006-12-04 at 19:55:32
It's not difficult to detect when a human player builds an upgrade using EUDs. It's nearly impossible to give a computer upgrades, though. The only way that I know how to do it is by running particular AI scripts and providing the preconditions necesary to upgrade. I think I have a tutorial map somewhere for some of the protoss upgrades if you're interested.
Report, edit, etc...Posted by Lord-Omega on 2006-12-05 at 10:33:02
ok so how would i do a EUD to detect the upgrades? cause i dont know how to do EUD's
Report, edit, etc...Posted by Owyn on 2006-12-05 at 13:50:48
even if you detect em... what will be the action? you can't change upgrade lvl with triggers for any1.

but if you are talking about upgrades like hydra speed boost, or range wide for dragoon, so it is auto given with unit you give computer
Report, edit, etc...Posted by Sarge999 on 2006-12-05 at 16:34:17
If you want to be simple and not use EUD's, you can have an area to select your upgrades, and just move a unit to a beacon and it upgrades you and your computer comrade.
Report, edit, etc...Posted by Heimdal on 2006-12-05 at 17:14:18
I don't think what you're saying is possible. Care to elaborate?
Report, edit, etc...Posted by Wing-of-no-Wing on 2006-12-05 at 19:39:36
It's really not hard to detect when a player upgrades without EUDs...

All you have to do is pick one of the resources (minerals/gas) and set it to a certain amount, then give each type of upgrade a different cost (less than said amount) in that resource. Whenever the player has an amount of the resource less than the starting amount, set the resource back to the starting amount and execute whatever action you want to depend on the upgrade that has a cost equal to the difference between the starting resource amount and the detected amount. For example, say you have an evolution chamber, and you want minerals to be money. Set the mineral cost of each upgrade to whatever you want, and set the cost of melee attack upgrade to 1 gas, of missile attack upgrade to 2 gas, and carapace to 3 gas. Start the player off with three gas. When the player has 2 gas, you know they've upgraded melee, and that you should reset the gas to 3 and execute your action (for example, adding one to a deathcount that tracks the upgrades); when they have 1 gas, you know they've upgraded missile (and to reset gas etc.); when they have 0 gas, you know that they've upgraded carapace. This works with building units, too.

Unfortunately, changing the computer's upgrades once you've detected the human's upgrades isn't going to be so easy...
Report, edit, etc...Posted by Lord-Omega on 2006-12-06 at 10:53:45
I want to use a EUD, so once again, How do i use a EUD to detect a upgrade?
Report, edit, etc...Posted by Heimdal on 2006-12-06 at 15:45:59
Well, you find the address in memory of the upgrade you want to detect, then figure out how far that is from the deaths (or resources) tables. Then do a little math and figure out what player/unit you have to use for the accumulate or deaths condition.

I could do all this for you but all the information I need is on my laptop at home (and on the wiki, which is down), and I'm at work right now. If I have time I'll check it out tonight.
Report, edit, etc...Posted by Owyn on 2006-12-07 at 15:43:19
QUOTE
when you get a Upgrade the Computer units in your squad get the same upgrade


stop pushing him to work hard on crappy things you tell him, it is not possible what he wants.
Report, edit, etc...Posted by Lord-Omega on 2006-12-08 at 10:41:08
QUOTE(Owyn @ Dec 7 2006, 03:43 PM)
stop pushing him to work hard on crappy things you tell him, it is not possible what he wants.
[right][snapback]600812[/snapback][/right]


that "was" one of the things i wanted...
Report, edit, etc...Posted by Owyn on 2006-12-08 at 14:23:49
so, what will you do after you finished all work on 01111010101 EUDS adresses and strings and finally able to detect upgrades? you can't change upgrade lvl for any1 in SC using triggers.
Report, edit, etc...Posted by Lord-Omega on 2006-12-08 at 20:59:08
Ill make it when you get a armor upgrade that your unit changes, thus giving the appearance you get a new suit of armor...
Report, edit, etc...Posted by Owyn on 2006-12-09 at 13:21:46
ok then, if you gonna detect armor, and if it is changed, replace current unit with another one.. but sounds weird anyway
Next Page (1)