Trigger Help! (thanks in advance!)
Moderator: Cheaters
-
- Member
- Posts: 82
- Joined: January 12th, 2009, 10:25 pm
Trigger Help! (thanks in advance!)
kick red
Events
Time - Every 0.10 seconds of game time
Conditions
(Item-type of (Item being manipulated)) Equal to HP Stone
Actions
Hero - Modify Strength of (Hero manipulating item): Add 1
Trigger name is kick red, its disguised under the kick folder. (Well not disguised, but you get my drift)
I'm not sure of the 'rules' for posting in the trigger/editing sub folder. I'm sure you'll all be pissed, but please please please don't reply telling me I need to change something about my post! If it must be edited: please do it yourself, pm me, ask a moderator or anyone who can edit others posts.
Please just help me ^_^! The goal: If Unit is holding HP Stone, add 1 STR per .10 seconds. Thanks again so much! ~cosmo
Events
Time - Every 0.10 seconds of game time
Conditions
(Item-type of (Item being manipulated)) Equal to HP Stone
Actions
Hero - Modify Strength of (Hero manipulating item): Add 1
Trigger name is kick red, its disguised under the kick folder. (Well not disguised, but you get my drift)
I'm not sure of the 'rules' for posting in the trigger/editing sub folder. I'm sure you'll all be pissed, but please please please don't reply telling me I need to change something about my post! If it must be edited: please do it yourself, pm me, ask a moderator or anyone who can edit others posts.
Please just help me ^_^! The goal: If Unit is holding HP Stone, add 1 STR per .10 seconds. Thanks again so much! ~cosmo
(Warcraft III = cosmosaint)
(XBL Gamertag = undead calibur)
(XBL Gamertag = undead calibur)
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: Trigger Help! (thanks in advance!)
Lol, love your 2nd to last paragraph xD
Anyway, this is one way to do it:
1) remove the condition in the trigger you have and edit the action into adding str to -variable-
2) turn off that trigger
3) make another trigger with event "A unit owned by Player 1(Red) Aquires an item", condition "TriggeringUnit Equal to -whatever-" and "(Item-type of (Item being manipulated)) Equal to HP Stone", and action "Turn on trigger kick red" and "set -variable- equal to TriggeringUnit
4) make one more trigger to turn off the kick red trigger (event "a unit owned by player 1(Red) loses an item", conditions are the same, action "Turn off trigger kick red" and clear -variable
**the -whatever- can be whatever you need it to be. If it only works for a specific unit, make it equal to that unit, if it only works for a unit type (hero), make it equal to that unit type**
Also...if you're making a map (for public release or whatever), and you want to "disguise" something, you might wanna consider protecting and optimizing the map? That way no one can see the GUI stuff.
Anyway, this is one way to do it:
1) remove the condition in the trigger you have and edit the action into adding str to -variable-
2) turn off that trigger
3) make another trigger with event "A unit owned by Player 1(Red) Aquires an item", condition "TriggeringUnit Equal to -whatever-" and "(Item-type of (Item being manipulated)) Equal to HP Stone", and action "Turn on trigger kick red" and "set -variable- equal to TriggeringUnit
4) make one more trigger to turn off the kick red trigger (event "a unit owned by player 1(Red) loses an item", conditions are the same, action "Turn off trigger kick red" and clear -variable
**the -whatever- can be whatever you need it to be. If it only works for a specific unit, make it equal to that unit, if it only works for a unit type (hero), make it equal to that unit type**
Also...if you're making a map (for public release or whatever), and you want to "disguise" something, you might wanna consider protecting and optimizing the map? That way no one can see the GUI stuff.
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Trigger Help! (thanks in advance!)
I don't like the GUI that much, so Ill just speak with a general recomendation.
If a unit picks up an item, set some boolean to true.
if a unit drops the item, set the same boolean to false
(all in 1 trigger)
2nd trigger:
every X seconds check the following:
if (the boolean above) then:
modify unit str - get triggering unit > get unit str + 1
If a unit picks up an item, set some boolean to true.
if a unit drops the item, set the same boolean to false
(all in 1 trigger)
2nd trigger:
every X seconds check the following:
if (the boolean above) then:
modify unit str - get triggering unit > get unit str + 1
-
- Member
- Posts: 82
- Joined: January 12th, 2009, 10:25 pm
Re: Trigger Help! (thanks in advance!)
Sounds like you both know what to do, If you would be so kind to make the trigger in a blank map with a standard item, so I can just 'copy & paste' the trigger in terms, well basically just look over it, and the 2nd to last paragraph is directed towards, Gmot's no offense but he usually only replies change your topic, and he's a mod. Anyway please upload a map with the complete trigger, thanks! I'll be in the chat for a while if you want to do it there =)!
(Warcraft III = cosmosaint)
(XBL Gamertag = undead calibur)
(XBL Gamertag = undead calibur)
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Trigger Help! (thanks in advance!)
I don't use the GUI system, if you want I can try to do so in jass.
-
- Member
- Posts: 82
- Joined: January 12th, 2009, 10:25 pm
Re: Trigger Help! (thanks in advance!)
T1
Events
Time - Every 0.10 seconds of game time
Conditions
(Item-type of (Item being manipulated)) Equal to Claws of Attack +15
Actions
Hero - Modify Strength of (Hero manipulating item): Add 1
Blank map with hero placed for Red, Claws of Attack placed infront of red, victory/defeat conditions have been nulled.
Please make it so when the hero picks up the item, he gains +1 str every .10 seconds. Thanks again!
Events
Time - Every 0.10 seconds of game time
Conditions
(Item-type of (Item being manipulated)) Equal to Claws of Attack +15
Actions
Hero - Modify Strength of (Hero manipulating item): Add 1
Blank map with hero placed for Red, Claws of Attack placed infront of red, victory/defeat conditions have been nulled.
Please make it so when the hero picks up the item, he gains +1 str every .10 seconds. Thanks again!
You do not have the required permissions to view the files attached to this post.
(Warcraft III = cosmosaint)
(XBL Gamertag = undead calibur)
(XBL Gamertag = undead calibur)
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: Trigger Help! (thanks in advance!)
You could made it a request you know o.o
Would have saved a lot of time for both of us.
Btw, thats a lot of str >.>
Would have saved a lot of time for both of us.
Btw, thats a lot of str >.>
You do not have the required permissions to view the files attached to this post.
-
- Banned-To-Be
- Posts: 1378
- Joined: July 28th, 2008, 6:28 pm
- Title: Administrator
Re: Trigger Help! (thanks in advance!)
Code: Select all
T1
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Claws of Attack +15
Actions
Set Hero = (Hero manipulating item)
T2
Events
Time - Every 0.10 seconds of game time
Conditions
(Item-type of (Item carried by Hero of type Claws of Attack +15)) Equal to Claws of Attack +15
Actions
Hero - Modify Strength of Hero: Add 1
It should stop adding strength when you drop or lose the item.
Tested. have fun ^^

League of legends North America - Nietono
-
- Member
- Posts: 82
- Joined: January 12th, 2009, 10:25 pm
Re: Trigger Help! (thanks in advance!)
haha awesome it works! I changed it to all stats every 0.01 its so awesome!
!

(Warcraft III = cosmosaint)
(XBL Gamertag = undead calibur)
(XBL Gamertag = undead calibur)
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Trigger Help! (thanks in advance!)
From my experience it will cause a HUGE lag so just increase the number and time..CoSmOSaiNt wrote:haha awesome it works! I changed it to all stats every 0.01 its so awesome!!