• 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.

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