How to use item recipes?

b_ray210

Active Member
Reaction score
1
Hey, i have a few veery basic questions about item recipes.
1. What item should i base a recipe off of?
2. What would the trigger look like?
3. How do i make a limit on how many you can carry?
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
1: Whichever items you want, doesn't matter which
2:
Code:
Events 
    A unit Acquires an item
Conditions
    (Item being manipulated) Equal to Your Item
Actions
    If/Then/Else Actions
         Conditions
             If (Triggering unit) Has Item-type of Your Item
         Then
             Remove (Item being manipulated)
             Remove Item-type of Your item from (Triggering unit)
             Create 1 Item-Type of your item and give it to (Triggering Unit)
         Else
             Do Nothing

3: That will be more complicated..
 

cleeezzz

The Undead Ranger.
Reaction score
268
3.

Code:
Boots Limit
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Boots of Speed
    Actions
        Set Boot_Count = 0
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Boots of Speed
                    Then - Actions
                        Set Boot_Count = (Boot_Count + 1)
                    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Boot_Count Greater than 2
            Then - Actions
                Hero - Drop (Item being manipulated) from (Triggering unit)
                Set Temp_PlayerGroup = (Player group((Owner of (Triggering unit))))
                Game - Display to Temp_PlayerGroup the text: |cffffcc00You have ...
                Custom script:   call DestroyForce(udg_Temp_PlayerGroup)
            Else - Actions

code i used to limit boots of speed to 2.
 

BoterhaM

New Member
Reaction score
2
Code:
Item recipe
    Events
        Unit - A unit Acquires an item
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Hero manipulating item) has an item of type Boots of Speed) Equal to True
                ((Hero manipulating item) has an item of type Gloves of Haste) Equal to True
                ((Hero manipulating item) has an item of type Claws of Attack +15) Equal to True
            Then - Actions
                Item - Remove (Item carried by (Hero manipulating item) of type Boots of Speed)
                Item - Remove (Item carried by (Hero manipulating item) of type Gloves of Haste)
                Item - Remove (Item carried by (Hero manipulating item) of type Claws of Attack +15)
                Item - Create Mask of Death at (Position of (Hero manipulating item))
                Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Items\Alem\AlemTarget.mdl
                Hero - Give (Last created item) to (Hero manipulating item)
                Wait 2.00 seconds
                Special Effect - Destroy (Last created special effect)
            Else - Actions
                Do nothing

http://www.thehelper.net/forums/showthread.php?t=58826
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top