Help With Triggers.

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
Lacos
Senior Member
Posts: 146
Joined: June 5th, 2007, 12:51 am
Location: California

Help With Triggers.

Post by Lacos »

Does anyone know how to make trigger for health point? Like when you type -hp 10000, it sets your hero to hp 10000.
Life is like a game of cards. The hand that is dealt you represents determinism; the way you play it is free will.
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

hp
Events
Player - Player 1 (Red) types a chat message containing -hp as A substring
Conditions
Actions
Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to (Real((Substring((Entered chat string), 4, 20))))
Last edited by namespoofer on June 10th, 2007, 4:27 am, edited 1 time in total.
Image
Doesn't Dekar make the world easier?

"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"

Catch me on Azeroth (U.S. East) - NameSpoofer
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

not possible to increase a units hit points without using upgrades/abilities

you can sure heal though... my -hp sets the units hp% to the specified...
so -hp 100 = full heal

etc
namespoofer
V.I.P.
Posts: 332
Joined: March 4th, 2007, 12:39 am
Location: United States

Post by namespoofer »

Ohh.. I mis-understood the question.. :shock:
Image
Doesn't Dekar make the world easier?

"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"

Catch me on Azeroth (U.S. East) - NameSpoofer
User avatar
Lacos
Senior Member
Posts: 146
Joined: June 5th, 2007, 12:51 am
Location: California

Post by Lacos »

Oh~~~ So it's not possible. Hehe :roll:
Life is like a game of cards. The hand that is dealt you represents determinism; the way you play it is free will.
User avatar
Totti_8
S.M.B. Creator
Posts: 84
Joined: January 20th, 2007, 11:32 am
Location: Germany

Post by Totti_8 »

it is possible! You can add "Book of Life" or a "rune" which increases life points but you must use Jass for this. But i don't think that you know Jass very well. So it is hard to explain and i won't post a whole Trigger for this ;)
Image
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

Yeah, you can use small things not related to triggers itself... ie abilities, upgrades, items... but that requires modifying the w3a and such which is so much work...