HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Map almost done, need some help plz.

10-18-2002, 02:47 PM#1
Guest
im close to being done with my map. just need to figure out a couple of triggers if you guys can help would be much appreciated.

1. how would I make it that when a Unit reaches a region, it would give a player say some gold or a lumber for each unit ?.

can I make it like that or do I have to use some rescue triggers ?.

I dont see any triggers that would allow it to work with units entering a certain region.

2. Ive tried to change some triggers around but I cant seem to make comp controlled units attack each other in range, they just avoid local enemy troops and head straight for the enemy base or region ordered to.

3. How would you make any units bought by a player be given control to the allied computer and make them head to a certain region.

in example, I take my hero to barracks and purchase / train a footman, comp takes over footman and moves it to a certain region on map to.

if anyone can help with these, tips, hints or how to do's will help me alot and finish my map for me to put out there for everyone to play on.

thanks.
10-18-2002, 06:19 PM#2
BlacKDicK
1) Create a "UnitGroup" variable called "AlreadyReceivedGold" then do:

Event:
Unit - A unit Enters Region (YOUR REGION)
Condition:
(Entering Unit) is Unit Group(AlreadyReceivedGold) Equal to "False"
Actions:
Unit Group - Add (Entering Unit) to (AlreadyReceivedGold)
Player - Add (10) to (Owner of (Entering Unit)) (Current Gold)

I don't know if this map is goinf to use "Lots of Units" or is going to be a "RPG-Like" map. Anyway, you can also "limit" this trigger to work only if Unit Count (Unit group) is bellow a number (to avoid giving too much gold if the player has too many units entering that region)

2) Didn't undertad the problem. Maybe you can do a Unit Group - Issue Order (Attack-Move) Targeting a Point on the CPU unit's.


3) Event:
Unit - A unit Enters Region (Playable map area)
Condition:
Unit type of (Entering Unit) is equal to (SELECT A UNIT HERE, say "Troll Shadow Priest")
Change Ownership of (Entering Unit) to (YOUR COMPUTER PLAYER HERE)
Unit - Issue Order (Entering Unit) to (Attack-Move) to (SELECT A REGION HERE)

You can also "improve" the condition to match multiple types of units by using "OR" and adding more checks to it.
10-19-2002, 01:35 PM#3
Guest
thx for the help blackdick. I got everything working right except for the first problem, still not working for me and did as you put it and tried other ways, the specific unit reaches the region but does not give player their rewards. im wondering if its cause its not giving the gold/lumber per unit to the right player. ill have to keep trying though. again thx.

im making a 4 on 4 type hero map, using comp allies for both teams to run other units, but rewarding each player with kills, so everytime they kill enemy unit, another unit is created and heads back to base.

example, player red kills a player grey unit, another unit is then created for red at point of death and heads back to allied comp base. unit reaches region and rewards reds with gold / lumber.

best map example I can think of is FM's Vampire hunter, how souls work.

hope this makes it clearer for my situation and much appreaciate the help.