Give units item

Zorobay

Member
Reaction score
1
Hi.

How do i make a unit start with an item the second he is spawned/summoned?

(So that he starts with certain items in his inventory)

TY!
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, depending on how the unit enters the map (Summoned or trained or created by triggers) you're gonna need different triggers for this.

If it's created by triggers, do this:
Trigger:
  • Items to created units
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Paladin
    • Actions
      • Hero - Create Claws of Attack +15 and give it to (Triggering unit)


If it's trained in like a Tavern, do something like this:
Trigger:
  • Items to created units Trained
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Paladin
    • Actions
      • Hero - Create Claws of Attack +15 and give it to (Trained unit)


And if it's summoned, you should probably either do this:
Trigger:
  • Items to created units Summoned
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Paladin
    • Actions
      • Hero - Create Claws of Attack +15 and give it to (Summoned unit)


Or this:
Trigger:
  • Items to created units Summoned 2
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Paladin
      • ((Triggering unit) is Summoned) Equal to True
    • Actions
      • Hero - Create Claws of Attack +15 and give it to (Summoned unit)
 

Jonnycakes

New Member
Reaction score
6
Unit enters playable map area should work in all of these scenarios. In all cases the unit is still entering the playable map area, so that can be used as a catch-all event.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Yeah, but it's stil (Slightly) more efficient to use specific events instead... :p
 
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