an item that costs 2 inventory slots

D

dunpealx4

Guest
is there any way to make an item that costs more than 1 inventory slot?
 

konerboy

Run piggy Run!
Reaction score
95
yeah but in this case you have to make a item that does nothing.

when you pick it up.

Code:
on pickup
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    Actions
        Hero - Create Used space and give it to (Triggering unit)

when you drop it.

Code:
on drop
    Events
        Unit - A unit Loses an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    Actions
        Neutral Building - Used space from (Triggering unit)
 

Advena

Just casually observing atm ;)
Reaction score
42
What's the
Code:
Actions
        Neutral Building - Used space from (Triggering unit)
doing?

I'd just use
Code:
Actions
        Unit - Order (Triggering unit) to drop (used space "item")
        Item - Remove (Last dropped item)

(note that I free-hand wrote my version)

Well, hope it helps anyways :)
 

Senzak

New Member
Reaction score
0
you might also want a trigger that prevents picking it up if you don't have enough free inventory slots
 

konerboy

Run piggy Run!
Reaction score
95
lol what the hell that wasn't suppos to be there?? :p

Code:
Untitled Trigger 001
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Triggering unit) [COLOR="Red"]Equal to have free inventory sloth[/COLOR](it's annoying i couldn't find it 
           Then - Actions
                Hero - Create Used sloth item and give it to (Triggering unit)
            Else - Actions
                Hero - Drop (Item being manipulated) from (Triggering unit)
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Triggering player))) the text: this item takes 2 inventory sloths drop something
 
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