Polymorph Cloud

Status
Not open for further replies.
Level 10
Joined
Sep 29, 2006
Messages
447
I'm trying to make an ability called polymorph cloud that will create a cloud at a target location that will cast polymorph on any unit that goes under it. So far I've created a cloud with the locust and polymorph abilities (I wan't the cloud invulnerable and unselectable), and polymorph has no tech requirements or mana. I tried using this trigger but it doesn't seem to be working does anyone have any idea as to how to make this work?

  • add event
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Polymorph Cloud
    • Actions
      • Trigger - Add to polymorph <gen> the event (Unit - A unit comes within 300.00 of (Summoned unit))
  • polymorph
    • Events
    • Conditions
    • Actions
      • Unit - Order (Summoned unit) to Human Sorceress - Polymorph (Triggering unit)
 
i didnt look what u tried but this is how i would do it:

  • Event
  • Every 0.06 seconds
  • Actions
  • Unit Group - Pick every unit in units of type cloud and do multiple actions
    • Set picked unit - TempUnit
    • Run seppo.gen
  • seppo.gen
  • Event
  • Conditions
  • Actions
  • Unit Group - Pick every unit in units in 300 distance from TempUnit
    • Unit - order TempUnit to Human Sorceress - Polymorph [Picked Unit]
 
  • add event
  • Events
  • Unit - A unit Spawns a summoned unit
  • Conditions
  • (Unit-type of (Summoned unit)) Equal to Polymorph Cloud
  • Actions
  • Trigger - Add to polymorph <gen> the event (Unit - A unit comes within 300.00 of (Summoned unit))
  • Polymorph
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to Polymorph Cloud)) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Human Sorceress - Polymorph (Triggering unit)
This trigger will pick any Polymorph Clouds that are in 300 range of the triggering unit and order them to cast Polymorph on the triggering unit.
 
Um... I seriously don't see any link between running 2 triggers at the same time and your spell being MUI.

its very MUI, but will spam them if they are inside the cloud. need a work around if they gonna just be polyed 1 time by each cloud. add them to a group array for each cloud eg.

add this to the map header

JASS:
function H2I takes handle h returns integer
    return h
    return 0
endfunction


  • ASDF
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Cloud) and do (Actions)
        • Loop - Actions
          • Set TempUnit = (Picked unit)
          • Custom script: set udg_TempInt = (H2I(GetEnumUnit())-0x100000)
          • Unit Group - Pick every unit in (Units within 512.00 of (Position of TempUnit) matching (((Picked unit) is in Group[TempInt]) Equal to False)) and do (Actions)
            • Loop - Actions
              • Set TempUnit = (Picked unit)
              • Trigger - Run TriggerSomething <gen> (ignoring conditions)
  • TriggerSomething
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in units in 300 distance from TempUnit
      • Unit Group - Add TempUnit to Group[TempInt]
 
Last edited:
Status
Not open for further replies.
Back
Top