HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help With A Spell

11-23-2003, 11:03 PM#1
ZZiNo
Aight,

Theres lets say 34+ "Puppies" and the player clicks one of them, and selects a move callled "grow up"

now this move will kill/remove 12 of the puppies and create 1 doggy(super unit)

now i get how to do this, except how do i get it to pick 12 puppies and then kill them
11-23-2003, 11:13 PM#2
FerretDruid
Code:
Unit Group - Pick every unit in (Random 12 units from (Units in (Playable map area*) matching ((Unit-type of (Matching unit)) Equal to Puppy))) and do (Unit - Kill** (Picked unit))
* - Or wherever you want.
** - Or Explode, whatever works for you.