HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

hero level detection trigger

09-07-2008, 11:59 AM#1
neku99
hi I'm new in this forums but I just want to ask if there is a trigger that can detect a hero's level
09-07-2008, 12:07 PM#2
Vexorian
Yes.

There is an event that fires when a hero wins a level, EVENT_PLAYER_HERO_LEVEL (for player unit events) and EVENT_UNIT_HERO_LEVEL (for specific unit events).

And there is also a native to get a hero's level: GetHeroLeve(hero)
09-07-2008, 12:14 PM#3
neku99
uhm sorry but I dont understand, is this jass??? cause I dont know it
09-07-2008, 12:29 PM#4
Tide-Arc Ephemera
Trigger:
My Awesome Trigger
Collapse Events
Unit - A unit Gains a level
Conditions
Actions

Configure Event --> Event Type: Unit --> Unit-Generic Unit Event --> A unit Gains a level

It's 4th from the top if UMSWE has the same basics as WE.
09-07-2008, 12:42 PM#5
neku99
Quote:
Originally Posted by Tide-Arc Ephemera
Trigger:
My Awesome Trigger
Collapse Events
Unit - A unit Gains a level
Conditions
Actions

Configure Event --> Event Type: Unit --> Unit-Generic Unit Event --> A unit Gains a level

It's 4th from the top if UMSWE has the same basics as WE.

well what I wanted was like this
Events
(Unit enters a region)
Conditions
(something like a units level is 10)
Action
(do action)

is there something like this???
ZOMG theres a lot that I dont know o.O
09-07-2008, 01:02 PM#6
Tide-Arc Ephemera
So you want to detect what level a hero is?

Configure Condition --> Integer Comparison --> Hero Level of Unit X equal to Y

Trigger:
Your trigger here
Events
Collapse Conditions
(Hero level of (Triggering unit)) Equal to (==) 10
Actions
However, instead of using equal to, you might want to use equal to or greater than in case your hero levels do exceed 10.

EDIT!
Don't worry if you don't see (==), I use UMSWE and it's an add on.
09-07-2008, 01:13 PM#7
neku99
Quote:
Originally Posted by Tide-Arc Ephemera
So you want to detect what level a hero is?

Configure Condition --> Integer Comparison --> Hero Level of Unit X equal to Y

Trigger:
Your trigger here
Events
Collapse Conditions
(Hero level of (Triggering unit)) Equal to (==) 10
Actions
However, instead of using equal to, you might want to use equal to or greater than in case your hero levels do exceed 10.

EDIT!
Don't worry if you don't see (==), I use UMSWE and it's an add on.

thanks man I didnt see that, it was in the integer right

EDIT
hey I saw you before in a tutorial right
09-07-2008, 01:20 PM#8
Tide-Arc Ephemera
Probably the item combining tutorial, seeing as that's the only one I've made... I think...
09-07-2008, 01:33 PM#9
neku99
Quote:
Originally Posted by Tide-Arc Ephemera
Probably the item combining tutorial, seeing as that's the only one I've made... I think...

of course! yeah thats it I think, I read that thread even before I registered here, its a good thing I registered thanks man you'll be seeing me here often cause I dont know much of the editor and JASS too lol
09-07-2008, 08:43 PM#10
chobibo
Welcome to wc3c dude!, I just want to suggest to you, if you have time, to read the jass tutorials in the tutorials section, you can write better scripts on your maps if you have jass knowledge. Anyways I hope you succeed.
09-08-2008, 11:03 AM#11
neku99
thanks man I will JASS will be in my system in no time(99999999days)
09-08-2008, 04:20 PM#12
ShadowWolf
Quote:
Originally Posted by neku99
is there something like this???
ZOMG theres a lot that I dont know o.O

Don't sweat it. It's just a matter of practicing and getting used to what exists, what commands you can use in what situations and such. Just gotta practice and get some experience under your belt :)