On a map I'm working on, I was hoping to create a mechanic that there would be "Chest" units lying around, and if you killed them, a random neutral unit would pop out. (A unit, that you would then mind control with an ability)
Would I have to create a behavior and apply it to the Chest units? And would there be a way to also alter the probability of getting certain units by making certain units more common and other units less common? How would I go about doing so?
Thanks in advance!
Rollback Post to RevisionRollBack
I also go by Krazymouse in SC2.
Past works: Cat and Mouse Winter Revival, Wrong Weapons Mod
Thank you so much! I just got it working! They can spawn single units.
I have the trigger working so that the unit can create a single type of unit. I was wondering if it was possible to make it select a random unit from a group of possible units?
Rollback Post to RevisionRollBack
I also go by Krazymouse in SC2.
Past works: Cat and Mouse Winter Revival, Wrong Weapons Mod
You could use the loot system of units. Under the Unit: Loot field un the Units data type you could put a Set type loot that uses Unit type loot for spawning the units.
On a map I'm working on, I was hoping to create a mechanic that there would be "Chest" units lying around, and if you killed them, a random neutral unit would pop out. (A unit, that you would then mind control with an ability)
Would I have to create a behavior and apply it to the Chest units? And would there be a way to also alter the probability of getting certain units by making certain units more common and other units less common? How would I go about doing so?
Thanks in advance!
I also go by Krazymouse in SC2.
Past works: Cat and Mouse Winter Revival, Wrong Weapons Mod
Easiest way would probably be triggers.
Event - unit dies
condition - unit type of unit (set it so the triggering unit type is your chest unit)
Then the event would be a create unit (your neutral unit). Create it at the position of triggering unit (the chest)
In reply to MaskedImposter:
Thank you so much! I just got it working! They can spawn single units.
I have the trigger working so that the unit can create a single type of unit. I was wondering if it was possible to make it select a random unit from a group of possible units?
I also go by Krazymouse in SC2.
Past works: Cat and Mouse Winter Revival, Wrong Weapons Mod
Never mind, I think I got it working with variables! Thanks for the help MaskedImposter!!!
I also go by Krazymouse in SC2.
Past works: Cat and Mouse Winter Revival, Wrong Weapons Mod
You could use the loot system of units. Under the Unit: Loot field un the Units data type you could put a Set type loot that uses Unit type loot for spawning the units.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg