Impale Height

PooBucket

New Member
Reaction score
12
its the same except for the event which now has a timer expires.

Trigger:
  • Ice Impale
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ice Impale asd
    • Actions
      • Set IceImpCaster = (Triggering unit)
      • Set BeginPointIceImp = (Position of IceImpCaster)
      • Set IceImpalePoint[1] = (BeginPointIceImp offset by 200.00 towards (Facing of (Triggering unit)) degrees)
      • Unit - Create 1 Ice Impale for (Owner of (Triggering unit)) at IceImpalePoint[1] facing Default building facing degrees
      • Set IceImpUnits[1] = (Last created unit)
      • Unit - Add a 0.50 second Generic expiration timer to IceImpUnits[1]
      • Set IceImpaleGroup[1] = (Units within 99.00 of (Position of IceImpUnits[1]) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of IceImpCaster)) Equal to True) and ((((Matching unit) is A flying unit) Equal to False) and
      • Unit Group - Pick every unit in IceImpaleGroup[1] and do (Actions)
        • Loop - Actions
          • Set IceImpPicked[1] = (Picked unit)
          • Unit - Add Storm Crow Form custom to IceImpPicked[1]
          • Unit - Remove Storm Crow Form custom from IceImpPicked[1]
          • Animation - Change IceImpPicked[1] flying height to 800.00 at 1500.00
          • Unit - Pause IceImpPicked[1]
          • Unit - Cause IceImpCaster to damage IceImpPicked[1], dealing (50.00 x (Real((Level of Ice Impale asd for IceImpCaster)))) damage of attack type Spells and damage type Normal


Trigger:
  • Ice Impale Timer
    • Events
      • Time - ImpaleTimer expires
    • Conditions
    • Actions
      • Unit - Add Storm Crow Form custom to IceImpPicked[1]
      • Unit - Remove Storm Crow Form custom from IceImpPicked[1]
      • Animation - Change IceImpPicked[1] flying height to 0.00 at 1500.00
      • Unit - Unpause IceImpPicked[1]


and the waits.

Trigger:
  • Ice Impale Begin
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ice Impale asd
    • Actions
      • Countdown Timer - Start ImpaleTimer as a One-shot timer that will expire in 1.00 seconds
      • Set ImpaleTimer = (Last started timer)


and another question,
Custom script: call SetUnitY(GetEnumUnit(), GetLocationY(udg_ChargeDist[udg_ChargeMUI])
Custom script: call SetUnitX(GetEnumUnit(), GetLocationX(udg_ChargeDist[udg_ChargeMUI])
Where do I put the ' ?
 

hgkjfhfdsj

Active Member
Reaction score
55
- in ice impale timer you can remove storm crow form add/remove >> it will still work
- for picked units from ice impale, only the last instance will go back down >> run another group pick in ice impale timer
- actions in ice impale begin can be merged with the first one
- the ' >> i think youre missing the end bracket
 

PooBucket

New Member
Reaction score
12
call SetUnitX (Get udg_ChargeHero[udg_ChargeMUI])(), GetLocationX(udg_ChargeDist[udg_ChargeMUI]))
call SetUnitY (Get udg_ChargeHero[udg_ChargeMUI])(), GetLocationY(udg_ChargeDist[udg_ChargeMUI]))

How do I make the Get - Get my variable? Dno how to make proper syntaxes D:.

Done everything except the 2nd bit. I don't quite understand :eek:.
 

hgkjfhfdsj

Active Member
Reaction score
55
do
Trigger:
  • Unit Group - Pick every unit in IceImpaleGroup[1] and do (Actions)
    • Loop - Actions
    • Set IceImpPicked[1] = (Picked unit)
    • Animation - Change IceImpPicked[1] flying height to 0 at 1500.00
    • Unit - Unpause IceImpPicked[1]

in your timer trigger

how to make proper syntaxes D
and i still dont get your q?
- do you get script errors?
- GetUnitX() ?
- what type of variable is chargedist[]
 

PooBucket

New Member
Reaction score
12
Custom script: call SetUnitX (Get udg_ChargeHero[udg_ChargeMUI])(), GetLocationX(udg_ChargeDist[udg_ChargeMUI]))
Custom script: call SetUnitY (Get udg_ChargeHero[udg_ChargeMUI])(), GetLocationY(udg_ChargeDist[udg_ChargeMUI]))

ChargeDist is point variable. ChargeHero is a unit variable. With normal editor i get script errors (I got newgen). It's suppose to be move but still have the animation when charging. I looked at another thread it had that code but it wasn't udg_variable so I couldn't copy D:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top