How can i make this? spell/buff/item

Tinker

New Member
Reaction score
1
Hi how can i make a frost armor be like permanent immolation? i could order a dummy unit to cast it on the hero when he picks up the item but what if he drops the item? what if the hero dies? pls hel pme to solve this

thx in advice
 

johnnymra

New Member
Reaction score
14
I think the best way is to make some sort of a buff that you put on the hero every time he acquires the item and take that buff away when he drops the item. Then, make a trigger, that fires every time this hero is attacked, which will make a dummy unit to cast slow on the attacking unit. I might come up with other ideas but this is a simple one.

Also... in case of hero death, i don't know.. you might just make the item drop-able upon death.
 

Tinker

New Member
Reaction score
1
Also... in case of hero death, i don't know.. you might just make the item drop-able upon death.

And hwo can i make it? because i used 2 simple triggers for make it work, but the hero doesnt lose the item when he dies...
 

Carnerox

The one and only.
Reaction score
84
If you make Frost Armor a hero ability and make it's required level above 6, then you can cast it on magic immune units(Pretty sure).
Trigger:
  • Frost Armor Pickup
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to (==) YourItem
    • Actions
      • Custom script: local unit u = GetManipulatingUnit()
      • Custom script: local player p = GetOwningPlayer(u)
      • Custom script: local location l = GetUnitLoc(u)
      • Custom script: local unit d
      • Unit - Create 1 DummyUnit for (p) at (l) facing Default building facing (270.0) degrees
      • Custom script: set d=bj_lastCreatedUnit
      • Unit - Add a 2.00 second Generic expiration timer to (d)
      • Unit - Add Frost Armor to (d)
      • Unit - Order (d) to Undead Lich - Frost Armor (u)
      • Custom script: RemoveLocation(l)
      • Custom script: set u=null
      • Custom script: set p=null
      • Custom script: set d=null
      • Custom script: set l=null

Trigger:
  • Frost Armor Drop
    • Events
      • Unit - A unit Pawns an item (to shop)
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to (==) YourItem
    • Actions
      • Custom script: local unit u = GetManipulatingUnit()
      • Unit - Remove Frost Armor buff from (u)
      • Custom script: set u=null


Hope this helps, and give you an idea how to make your item.
 

johnnymra

New Member
Reaction score
14
About the dropping upon death... that is simple and trigger-less... you just go in the Object editor and there is a field at the Item's Stats - Drops upon Death True/False. You set that True.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top