making items invulnerable?

Kuberr24

Well-Known Member
Reaction score
28
Is there a way to make items invulnerable when they're on the ground (not in shop or inventory)

Basicly, I don't want anybody to attack items that might be on the ground.

There don't seem to be an event "an item is attacked" or an action "make item invulnerable"

PS: setting hit points to high value is not what I want, I want them to be unattackable.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Try this:
Trigger:
  • ItemAntiAttack
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(attack))
      • ((Target item of issued order) is in (Playable map area)) Equal to True
    • Actions
      • Unit - Order (Triggering unit) to Stop
 

Argos

New Member
Reaction score
7
Code:
[B]Trigger - Drop item[/B]
Event
  A unit drops an item
Conditions
Actions
  Make <item being manipulated> invulnerable


Code:
[B]Trigger - Pick Up item[/B]
Event
  A unit picks up an item
Conditions
Actions
  Make <item being manipulated> vulnerable


So now your items will be invulnerables when they are dropped. You should check if first trigger works with created item by triggers / loot. If dont, create new trigger similar to First trigger remplacing <item being manipulated> by <last created item>.

If the map contains items on the ground at the beginning check them.
 
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