• 🏆 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!

Stronghold like map system help

Status
Not open for further replies.
so as the title says I need some assistance making a system with the following. please note that I not sure if it would be considered a trigger system or not and making it so the ai uses the same system.


1. the number of homes you have determines how many troops you can maintain (1 home = 10 troops)
2. food is stored in the granary the more farms you have the more happy people in your base are. Basically If Upkeep is GREEN you can train troops if Upkeep is RED you can not train any troops. this happens if your Granary is destroyed, or both your farms and Granary are destroyed.
3. Wood, Stone are Stored at the Stockpile (I need to know how to make it so that certain buildings require wood or stone or both to build). If the Stockpile is destroyed you lose all your supplies you gathered (need help on making it that way)
4. you loose when your Lord dies (its a hero you will start with but I need help making it so it does not count toward the 3 you can train). you win all enemy lords are dead.

any help will be greatly appreciated thank you
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
1. the number of homes you have determines how many troops you can maintain (1 home = 10 troops)
I think Warcraft III calls this food. 1 home grants 10 food. You can rename it to something else if desired.
2. food is stored in the granary the more farms you have the more happy people in your base are. Basically If Upkeep is GREEN you can train troops if Upkeep is RED you can not train any troops. this happens if your Granary is destroyed, or both your farms and Granary are destroyed.
Probably some periodic trigger that compares granary count with farm count. If the delta passes a certain amount then do whatever.
3. Wood, Stone are Stored at the Stockpile (I need to know how to make it so that certain buildings require wood or stone or both to build). If the Stockpile is destroyed you lose all your supplies you gathered (need help on making it that way)
Likely needs a custom resource system. I think the spell section has quite a number of them. When the building dies, remove resources. One might need to hack together a system to associate resources with store buildings.
4. you loose when your Lord dies (its a hero you will start with but I need help making it so it does not count toward the 3 you can train). you win all enemy lords are dead.
Unit dies event. If unit dying is equal to lord then defeat player. If only 1 undefeated player remains, win them.
 
Status
Not open for further replies.
Top