• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Buildings granting resources and problematic sheep.

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
Hey! I'm making a map called "Dragon Wars". It's a battle between Red, Black and Undead Dragons. Also, there's humans.
Well, those humans only want to survive. They build Meat Cages for the dragons.
Now, those cages are supposed to give a set amount of Meat (Wood) to the player destroying them. And i have no idea how to do a such trigger.
The tricky part (imo :P) is that the trigger will have to work for Cages being built during the game.
If it can be solved by giving the dragons an ability to use against the Meat Cages that is approved aswell.

Also, i have replaced trees with sheep, as you're farming meat, not wood, heh.
I have made triggers for spawning sheep in a certain area, and that works well. Now, it gets problematic when the sheep dies. their bodies are littering the ground and after a while you only see bloddy sheep everywhere...
I tried to make a "cleanup-trigger" but it made the game crash :eek:
Is there a way to make the sheep-bodies (treestumps) disappear after a while?

I'd really appreiciate help!
 
  • Trigger
  • Events
    • Unit - A unit dies
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Meat Cage
    • ((Owner of (Killing unit)) controller) Equal to Player
  • Actions
    • Player - Add 30 to (Owner of (Killing unit))'s Current lumber
  • Trigger
  • Events
    • Unit - A unit dies
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Sheep
  • Actions
    • Unit - Remove (Triggering unit) from the game
 
Thanx alot, but i don't think the second will work, as the sheep are actually modified trees?
When i tried to make a trigger like the second the game crashed :s
whatever, i'll try it, thanks, +rep :smile:
 
Oh, sorry. I know it crashes, that's why you need a wait of 0.00 seconds ;)
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Destructible - Pick every destructible in (Playable map area) and do (Actions)
      • Loop - Actions
        • Trigger - Add to Teg <gen> the event (Destructible - (Picked destructible) dies)
  • Teg
  • Events
  • Conditions
  • Actions
    • Wait 0.00 seconds
    • Destructible - Remove (Dying Destructible)
There was another similar issue: https://www.hiveworkshop.com/threads/doodad-problem.181425/post-1739684
 
after a while you only see bloddy sheep everywhere...
OT:
Okay, I couldn't resist. That's the best line I've seen in quite a while! Put a nice big grin on my face when I'm otherwise quite annoyed. Thanks!

Back on topic... was it fixed? No more gory sheep carcasses plastered all over the place? :O

PS: This makes me want to make a map with sheep trees and kill them all! >:D
 
Actually i haven't had time to try it yet :P
i'm modding an older map right now (i want to have that done tomorrow) but i hope the trigger won't make the game crash like it did when i tried to make the trigger on my own :P
 
Status
Not open for further replies.
Back
Top