| 01-28-2003, 09:39 PM | #1 |
Guest | Ok, if a unit is trained, you refer to it as a "trained unit" if a unit is constructed, it is referred to a "constructed unit" but what are units that are just bought at .. say.. a shop, called? The reason I need this is because when units are sold, they have a cooldown on their stock interval, which I need to control the number they can buy.. but what if I want to make that unit do something right away? how do I refer to it? or perhaps it's a workaround if I can refer to a type of unit, but that it hasn't been created in the game yet.. is that possible? |
| 01-28-2003, 10:17 PM | #2 |
Let's say for example players can purchase an Ogre from a Mercanary shop. You could use the following trigger to refer to it when it is bought: EVENTS Unit - A unit enters (Playable map area) CONDITIONS (Unit-type of (Entering unit)) Equal to Ogre ACTIONS <perform the actions you want here> If you only wanted to perform actions specific to players, you would have to throw in some if statements and test for the owner of the hired unit. |
| 01-28-2003, 10:47 PM | #3 |
also you can do this E Unit is ordered an order with no point {im not sure if that is right} C Order Comparisin - Oder equal to (convert to string(unit type(your unit)) |
| 01-28-2003, 11:25 PM | #4 |
Guest | both are interesting options.. I guess I just need the proper regions.. well thanks.. :D |
| 01-29-2003, 12:08 AM | #5 | |
Quote:
By specifying that a unit enters the Playable Map Area for your region, the trigger would fire whenever a new unit appears, anywhere on the map. The trigger I specified would detect any ogre entering anywhere on the map. You could narrow things down of course by creating regions that surround the shop, and adding an event for each region. |
