PDA

View Full Version : Item Trigger


Tharkas
06-14-2006, 3:10 PM
All I Want to make is an advanced Item that are made of two items

for an ex.

Eul's Scepter of Divinity (Full name is not important :D)
-Void Stone
-Staff of Wizardy
-Robe of Magi
-Recipie that makes 450 Gold

So Can you Write the True Triggers and Variables that combine two items to make an advanced item

Please :)

gamer102
06-16-2006, 1:12 PM
I'm new to the item triggers but try this

Trigger "Item Check"

Events
- Every .10 seconds of game time
Conditions
- None
Actions
- Run Combination (Checking Conditions)

Trigger "Combination"

Events
- None
Conditions
- Hero has Item (First Item)
- Hero has Item (Second Item)
Actions
- Remove Item from hero (First Item)
- Remove Item from hero (Second Item)
- display text "item combined" (optional)
- Give Item to hero (Combined Item)

Will that work

I found out that TFT has if then else do ACTIONS and then you can list all the actions there
but in RoC, the run trigger can be used as that becuase you cant have multiple actions

Trigger - Run = if/then/else do actions

Sid
06-20-2006, 3:26 AM
Trigger Item Combo
Event
- A unit aqquires an item
Conditions
- unit aqquiring item is a hero equal to true
Actions
local unit T
set tempunit = hero manipulating item
set T = udg_tempunit
wait 1.00 seconds
set udg_tempunit = T
if
And
tempunit has item of type Robe of the Magi
tempunit has item of type Void Stone
tempunit has item of type Sobi Mask
tempunit has item of type Sceptar(Recipe)
Then
<Actions that drops all these items and removes them>
Create 1 Sceptar and give it to the tempunit.

Dayoh
06-20-2006, 3:28 AM
Oh god i hate u sid, u slipped in and beat me by like 2 mins 4:58 pm i got in at grrrrrrrr