Trigger Help! (thanks in advance!)

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

CoSmOSaiNt
Member
Posts: 82
Joined: January 12th, 2009, 10:25 pm

Trigger Help! (thanks in advance!)

Post by CoSmOSaiNt »

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
(Warcraft III = cosmosaint)
(XBL Gamertag = undead calibur)
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: Trigger Help! (thanks in advance!)

Post by naturesfury »

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.
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Trigger Help! (thanks in advance!)

Post by haxorico »

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
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
CoSmOSaiNt
Member
Posts: 82
Joined: January 12th, 2009, 10:25 pm

Re: Trigger Help! (thanks in advance!)

Post by CoSmOSaiNt »

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)
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Trigger Help! (thanks in advance!)

Post by haxorico »

I don't use the GUI system, if you want I can try to do so in jass.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
CoSmOSaiNt
Member
Posts: 82
Joined: January 12th, 2009, 10:25 pm

Re: Trigger Help! (thanks in advance!)

Post by CoSmOSaiNt »

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!
You do not have the required permissions to view the files attached to this post.
(Warcraft III = cosmosaint)
(XBL Gamertag = undead calibur)
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: Trigger Help! (thanks in advance!)

Post by naturesfury »

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 >.>
You do not have the required permissions to view the files attached to this post.
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Trigger Help! (thanks in advance!)

Post by Lanaya »

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


Oh the good times.. made 2 triggers and a Unit variable called Hero.

It should stop adding strength when you drop or lose the item.

Tested. have fun ^^
Image
League of legends North America - Nietono
CoSmOSaiNt
Member
Posts: 82
Joined: January 12th, 2009, 10:25 pm

Re: Trigger Help! (thanks in advance!)

Post by CoSmOSaiNt »

haha awesome it works! I changed it to all stats every 0.01 its so awesome! :D!
(Warcraft III = cosmosaint)
(XBL Gamertag = undead calibur)
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Trigger Help! (thanks in advance!)

Post by haxorico »

CoSmOSaiNt wrote:haha awesome it works! I changed it to all stats every 0.01 its so awesome! :D!

From my experience it will cause a HUGE lag so just increase the number and time..
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?