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

Meat Wagon {counting the bodies inside a Meat Wagon}

Status
Not open for further replies.
Level 4
Joined
Aug 22, 2008
Messages
100
I need help creating a trigger that is supposed to give you gold when a meat wagon enters a region the more bodies you have the more gold. but i cant find any way to do the bodie count. Help!
 
Level 4
Joined
Aug 22, 2008
Messages
100
I tried making it a variable but I want to be able to create more meatwagons and that would be a problem or am I thinking wrong?
 
Level 18
Joined
Mar 7, 2005
Messages
824
more meatwagons = need of variables increase, right?
so sum them up into an array..

Corpsecount[ ] with arra of lets say 1000

then just use it like normal..

set Corspecount[1] = 2
and so on.. maybe you set some "Meatwagon[ ]" variable with same amount (1000)
and connect them, if meatwagon[1] changes his corspe amount then change Corspecount[1] simultanious..

(besides of that, I guess this needs a bit more thinking to make it work well.. so think about it and try something.. When I got a better idea I'll tell you)
 
Status
Not open for further replies.
Top