Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Tr
Events

Map Initialization
Conditions
Actions

Custom script: set bj_wantDestroyGroup = true

Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)


Loop - Actions



Hero - Modify unspent skill points of (Picked unit): Add (250 x (Strength of (Picked unit) (Include bonuses))) points
Moved to World Editor Help Zone. Need help getting started on a trigger? Triggers & Scripts is not the right place.
Im trying to make it in my map where certain NPC's get 250* their level of strength and agility. anyone have a trigger that would do this?
Melee Initialization

Events


Map initialization

Conditions

Actions


Unit Group - Add <selected unit> to NPC_Group


Custom script: set bj_wantDestroyGroup = true


Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is in NPC_Group) Equal to True)) and do (Actions)



Loop - Actions




Hero - Modify Strength of (Picked unit): Add (250 x (Hero level of (Picked unit)))
Something like this?
This is what you mean by Skill Points, right?
Tr
Events
Map Initialization
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions
Hero - Modify unspent skill points of (Picked unit): Add (250 x (Strength of (Picked unit) (Include bonuses))) points
Just add strength under Hero Triggers. No need for jass
![]()
I think this is what your asking for, please tell me if it works.
this is my finished trigger.
Extra NPC Skill ups

Events


Map initialization

Conditions

Actions


Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Owner of (Picked unit)) Equal to Player 12 (Brown)





Then - Actions






Hero - Modify Agility of (Picked unit): Add ((Hero level of (Picked unit)) x 250)






Hero - Modify Strength of (Picked unit): Add ((Hero level of (Picked unit)) x 250)





Else - Actions






Do nothing
set wantDestroyGroup = true
I edited it a little but it worked!this is my finished trigger.
Extra NPC Skill ups
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 12 (Brown)
Then - Actions
Hero - Modify Agility of (Picked unit): Add ((Hero level of (Picked unit)) x 250)
Hero - Modify Strength of (Picked unit): Add ((Hero level of (Picked unit)) x 250)
Else - Actions
Do nothing
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)

Loop - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Owner of (Picked unit)) Equal to Player 12 (Brown)



Then - Actions




Hero - Modify Agility of (Picked unit): Add ((Hero level of (Picked unit)) x 250)




Hero - Modify Strength of (Picked unit): Add ((Hero level of (Picked unit)) x 250)



Else - Actions
