• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Starting Location & unit spawn & vision

Status
Not open for further replies.
Level 5
Joined
Jan 23, 2005
Messages
124
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?
 
1st: make a region and then do a trigger.
Code:
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:
Code:
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.
 
Status
Not open for further replies.
Top