HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How have users collect gold

12-01-2002, 09:38 PM#1
Guest
Hey guys,

So I've got a situation I can't figure out.

I want users to be able to run over an item or unit (such as a child) and have them be awarded 200 gold for each item/unit they run over.

I know how to setup most of this, but my problem arises when I want to have 500 different children on the board be worth 200 gold. The editor, in the way I'm setting it up, will only let me select one individual unit, not the unit type (child) itself.

How can I make each child on the board worth 200 without individually setting them up? Does it have something to do with arrays? Thanks! :)

-Dolby
12-01-2002, 10:31 PM#2
Draco
Make a unit group variable and use a trigger:

Unit Group - Add all units of unit type (Child) to (Your Unit Group Variable)
12-01-2002, 11:35 PM#3
weaaddar
Or just use Unit(random unit of type Child).
12-02-2002, 12:59 AM#4
Orzokiki
i was about to say what Draco was...(honest)
12-02-2002, 04:51 AM#5
dataangel
Event
Unit owned by Player X dies (whichever player owns children)
Condition
Unit-type of dying unit = child
Action
Give 200 gold to owner of(killing unit)
12-02-2002, 07:01 AM#6
Rifleman_alan
)ry a good ole masive area :ggani:
Then do your select all units in (region sorry not area) and make worth $200 (im sure thats a build in trigger im not sure might have been my own scripting ill cheak it out!!! i used it in my killing spree beta map!!!!!!! :ggani: ) i cant wait till its released but o well i cant work on it couse of my christmas map but if it was my own scripting ill pm it to u k :ggani:

(btw my fave smile is :ggani: :D)
12-02-2002, 09:03 AM#7
Guest
Thanks so much :) Off to try your suggestions :D :D
12-02-2002, 08:39 PM#8
Milkman
I was going to say something smart about collision and a way to count it even if you just ran over them and not killing them but i lost it...