• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Free Heros in Altars?

Status
Not open for further replies.
Level 2
Joined
Sep 14, 2010
Messages
8
Hello, I'm having a problem that I can't figure out myself. How do I make a custom Hero only cost food when first being summoned like most heros? :vw_wtf:

My guess would be

Go to Object Editor>Your Hero and find this.

Stats - Lumber Cost 0
Stats - Gold Cost 0
Stats - Food Cost x

where x is how much you want it to cost.
 
Level 19
Joined
Oct 15, 2008
Messages
3,231
I think he means when summoning the hero for the first time, then the food cost = 0, when beyond the 1st time, it'll cost gold. You could try making a trigger that changes the units sold in the Altar and set the event to be a Player Creating a Unit while the action is that you Remove other heroes and Add new heroes which cost resources.
 
Just check normal hero stats -.-

EDIT:

Oh one of this trigger actions do that ^^
or maybe all of them
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Use melee time of day (for all players)
      • Melee Game - Limit Heroes to 1 per Hero-type (for all players)
      • Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
      • Melee Game - Set starting resources (for all players)
      • Melee Game - Remove creeps and critters from used start locations (for all players)
      • Melee Game - Create starting units (for all players)
      • Melee Game - Run melee AI scripts (for computer players)
      • Melee Game - Enforce victory/defeat conditions (for all players)
EDIT 2:

Oh it's this one ^^

  • Melee Game - Create starting units (for all players)
 
Level 5
Joined
May 31, 2010
Messages
96
Just check normal hero stats -.-

EDIT:

Oh one of this trigger actions do that ^^
or maybe all of them
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Use melee time of day (for all players)
      • Melee Game - Limit Heroes to 1 per Hero-type (for all players)
      • Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
      • Melee Game - Set starting resources (for all players)
      • Melee Game - Remove creeps and critters from used start locations (for all players)
      • Melee Game - Create starting units (for all players)
      • Melee Game - Run melee AI scripts (for computer players)
      • Melee Game - Enforce victory/defeat conditions (for all players)
EDIT 2:

Oh it's this one ^^

  • Melee Game - Create starting units (for all players)


I can't use that. Because it's for a custom race so it would just spawn peasants at the start location. :ogre_rage:
 
Well use simple trigger that will after 1 sec, pick all peasants on the map and remove them!

Create black screen with fade filters and write something like loading resources, no one must to know what you are doing!

Also If you don't use peasants, delete model, set food cost to 0, change classification from worker (to remove that icon, left bottom corner on the screen), add Locust ability and do that above :D
 
Status
Not open for further replies.
Top