HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help with my new map

12-31-2002, 08:40 PM#1
SkylineGT[FB]
im makeing a new map called Blood, idea from age of empires. i need to know how to do this: there is a region on an island were u choose ur unit to make, and u have 2-3 unit to choose from. but if u put all of the units into the region, it creates all the units in the region. if u know how to make it only create 1 of the unit, could u tell me plz.





if u have any questions, ask me
12-31-2002, 08:44 PM#2
Spideykid
Can they continue to make more units of the same type? or only 1 unit period?
12-31-2002, 08:59 PM#3
SkylineGT[FB]
u have 2-3 units (i havnt decided yet) and u have a region on the unit choose island. then u move one of ur units into the region and then the units that is in the region is created in the main island. and u can switch units. like if u dont like the one u have or u get a new one, u can switch.
12-31-2002, 09:18 PM#4
Spideykid
Make a Variable that will determine wether or not you have created a unit yet and what type.

In map int set it to zero
set intCreatedUnitFlag = 0

Then when you create a unit check to see if the flag is 0 if not set it to equal to the unit number(like 1 would be like footman, 2 knight, etc..) if it is not zero don't create a unit, enstead check and make sure previous unit type(which you can tell by the intCreatedUnitFlag value) isn't in the region still and if it isn't change previous created unit to the new type and change the intCreatedUnitFlag to the new value, if the previous unit type is still in the region don't do anything.
12-31-2002, 09:28 PM#5
SkylineGT[FB]
ok ill try it. ill tell u later if it works