Warcraft III resources & community, 2003–2006 · archived

Starting Location & unit spawn & vision

3 posts
#1

Starting Location & unit spawn & vision

Uhm i really need help im making a map and i need to konw how to make a hero from a tavern that i buy spawn at a certain spot away form tavern, and how to make the start location but, have it so that the great hall etc. dont show up, and i need to know how to make a building spawn units but then wehn you upgrade it, it spawns different units and be able to have visibilty to all players in a certain area (all of this is bassicaly in footmen frenzy) help?
#2
1st: make a region and then do a trigger.

Untitled Trigger 001
    Events
        Time - Elapsed game time is 0.01 seconds
    Conditions
        ((Sold unit) is A Hero) Equal to True
    Actions
        Unit - Create 1 (Unit-type of (Sold unit)) for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
        Camera - Pan camera for (Triggering player) to (Center of Region 000 <gen>) over 0.00 seconds


not sure if it will work, modify the trigger a little if it doesn't, didn't have time to test it.

2nd:
from Malee initialization, remove the Maleee game - create starting units or if the map is not a malee or altered malee, just remove the whole trigger.

3rd:

switch
    Events
        Unit - A unit Finishes an upgrade
    Conditions
        (Researched tech-type) Equal to Powerful 
    Actions
        Trigger - Turn off spawn1 <gen>
        Wait 0.01 seconds
        Trigger - Run spawn2 <gen> (ignoring conditions)
        Trigger - Turn off (This trigger)


this trigger will switch from spawn1 to spawn2, spawn1 is the one with old units and the spawn2 is with new.
#3
ok ill try them ill come back and nag more if i cant get it to work :p