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?
I don't think this is possible, though maybe you could EUD it into your map.
Not possible with upgrades, but with abilities (just give one unit that has that upgrade over to the other player)
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.
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.
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.
ok so how would i do a EUD to detect the upgrades? cause i dont know how to do EUD's
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
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.
I don't think what you're saying is possible. Care to elaborate?
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...
I want to use a EUD, so once again, How do i use a EUD to detect a upgrade?
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.
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.
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...
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.
Ill make it when you get a armor upgrade that your unit changes, thus giving the appearance you get a new suit of armor...
ok then, if you gonna detect armor, and if it is changed, replace current unit with another one.. but sounds weird anyway