Quick Question
Moderator: Cheaters
-
- Newcomer
- Posts: 17
- Joined: October 16th, 2007, 9:25 pm
- Title: Learning New Stuff
- Location: Your Couch
-
- Crusader
- Posts: 4236
- Joined: January 27th, 2007, 4:46 pm
- Location: Greece, Veria
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Quick Question
Didyae not see this is in the GUI section?Georgemots wrote:Here is the trigger for dota which is similar to what youre lookin for
Spoiler:
And I'll answer this in a minute.
(Edit)
item4gold (Title of Trigger)
Events
Unit - A unit owned by Player 12 (Brown) Acquires an item
Conditions
((Triggering unit) has an item of type Tome of Experience) Equal to True (Tome of Experience = (Whatever item you want it)
((Triggering unit) is A Hero) Equal to True
Actions
Countdown Timer - Start Timer as a Repeating timer that will expire in 25.00 seconds (Timer = Variable, create a timer variable (new empty (Default), and use that for "Timer")
Trigger - Turn off (This trigger)
timerexpires (Title of Trigger)
Events
Time - Timer expires (Timer = Variable you created from before)
Conditions
Actions
Player - Add 30 to Player 12 (Brown) Current gold
vampiredropsitem (Title of Trigger)
Events
Unit - A unit owned by Player 12 (Brown) Loses an item
Conditions
((Triggering unit) is A Hero) Equal to True
(Item-type of (Last dropped item)) Equal to Tome of Experience (Tome of Experience = (Whatever item you want))
Actions
Countdown Timer - Pause Timer (Timer = Variable you created from before)
Trigger - Turn on item4gold <gen>
This should be rather fool-proof. I think.
-
- Forum Fanatic
- Posts: 315
- Joined: October 16th, 2007, 7:32 pm
Re: Quick Question
Skillet uses a much simpler trigger lol...
In 4.02b he said he just made a trigger like this
Events: Unit buys item
Condition: Item Equal to (your item)
Actions: Enable Trigger
Events: Every 30 sec
Conditions: Unit has (your item) in Invintory
Actions: Add 25 gold to owner of (unit (with item)
You can change the trigger to only work with certain units or player colors. If you just put the second trigger in it will work for every player and every unit that buys one and has an inintory.
You can also make a trigger to only allow one to be bought
Events: A unit aquires an (your item)
Conditions: (triggering unit) equal to (has (your item (in invintory)
Actions: Remove bought item from the game
Add (Gold) to (owner of(triggering units)) current gold.
In 4.02b he said he just made a trigger like this
Events: Unit buys item
Condition: Item Equal to (your item)
Actions: Enable Trigger
Events: Every 30 sec
Conditions: Unit has (your item) in Invintory
Actions: Add 25 gold to owner of (unit (with item)
You can change the trigger to only work with certain units or player colors. If you just put the second trigger in it will work for every player and every unit that buys one and has an inintory.
You can also make a trigger to only allow one to be bought
Events: A unit aquires an (your item)
Conditions: (triggering unit) equal to (has (your item (in invintory)
Actions: Remove bought item from the game
Add (Gold) to (owner of(triggering units)) current gold.
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Quick Question
I was trying to make it absolutely fool-proof, but yes, that would also work.Black-Hole wrote:Skillet uses a much simpler trigger lol...
In 4.02b he said he just made a trigger like this
Events: Unit buys item
Condition: Item Equal to (your item)
Actions: Enable Trigger
Events: Every 30 sec
Conditions: Unit has (your item) in Invintory
Actions: Add 25 gold to owner of (unit (with item)
You can change the trigger to only work with certain units or player colors. If you just put the second trigger in it will work for every player and every unit that buys one and has an inintory.
You can also make a trigger to only allow one to be bought
Events: A unit aquires an (your item)
Conditions: (triggering unit) equal to (has (your item (in invintory)
Actions: Remove bought item from the game
Add (Gold) to (owner of(triggering units)) current gold.