• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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