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

[Trigger] Duplicate units in game

Status
Not open for further replies.
Level 2
Joined
Oct 13, 2014
Messages
8
Hello everyone, i am trying to make a trigger but failed.


There is the detail of the trigger :


Unknow event (could be casting a spell, enter region, etc...) , teleport all heroes of the triggering player to a random point in [an area], DUPLICATE all the player's heroes for [NEUTRAL HOSTILE] (controller) at random point in [an area].

DUPLICATE : copy the unit's type, level, stats (bonus from tomes) and items.


After that, the player's heroes will fight against the duplicated ennemy heroes in a fighting area. If anyone win (all ennemy killed), reward 250 gold to the winner, wait 10s and teleport back the player's heroes to [an area]. If computer win, remove all the duplicated heroes in the fighting area.


This is WAY so hard for me to make this trigger :vw_wtf::vw_wtf::vw_wtf:
 
Level 12
Joined
Oct 16, 2010
Messages
680
  • Events
  • Conditions
  • Actions
    • Pick every unit of (owner of (triggering unit)) that mach conditions and do actions
      • Conditions
        • Condition - (matching unit) is a hero
      • Actions
        • Set Str = strength of (picked unit)
        • Set Agi = agility of (picked unit)
        • Set Int = intelligence of (picked unit)
        • Unit - move (picked unit) instantly to region
        • Unit - create 1 (unit type of(piced unit)) at random point in region ...
        • Hero - Set (last created unit)'s strength to Str
        • Hero - Set (last created unit)'s agility to Agi
        • Hero - Set (last created unit)'s intelligence to Int
        • Hero - Set(level of (last created umit)) to (level of(picked unit))
        • Loop - for every IntegerVar from 1 to 6 , do Actions
          • Actions
            • Item - create 1 (item type of(item in inventory slot IntegerVar))
            • Item - Give item to (picked unit)
its just for the setup and not leakfree
 
Last edited:
Status
Not open for further replies.
Top