Need some help on this Fuction

Status
Not open for further replies.
Level 3
Joined
Apr 4, 2012
Messages
64
1- I want to add without creating a unit on the map editor i want it so when i make the research ingame it adds to my current hero if he doesn't have more than 4 skills.
2- Don't look at the names its just a test.
3- With a created hero it works i have tested
The map is 1 hero only for player
thx in advanced
2nv6x48.png
 
Unit - A unit Finishes research

this is nothing to do with Learning Hero

if you want to add the ability to the unit that researched flame strike

use this

Unit - Add Cluster Rockets to (TriggeringUnit)

TriggeringUnit is always the unit which started the event
or you could use ResearchingUnit too
 
Unit - A unit Finishes research

this is nothing to do with Learning Hero

if you want to add the ability to the unit that researched flame strike

use this

Unit - Add Cluster Rockets to (TriggeringUnit)

TriggeringUnit is always the unit which started the event
or you could use ResearchingUnit too

its like this i have a house where i research the spell for the hero if he exists. i only make the unit on altar ingame.

this part is working.

how do i make so it adds the spell to owner hero on triggs? cuz till now i was only able to do when i create the hero in map editor and i select thats the trigger unit to add the spell
 
  • Custom script: set bj_wantDestroyGroup = true
  • Pick all units matching (owner of matching unit == triggering player) and unit type of matching unit == your unit type
  • -loop
  • --add ability to picked unit

where can i find pick all units matching and loop?
 
You seem new to triggers a bit

Unit Group - Pick every unit matching condition and Do actions

Example:
  • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
    • Loop - Actions
      • Unit - Add Animate Dead to (Picked unit)

pick every units isnt the same besides can someone be more detalied? i cant find it :s

well i still cant do the last part i cant do the matching stuff .... wheres that? lol
 
It is the same just scroll down in the actions drop down list to Unit Group - Pick....


( :goblin_boom: )

well thats not the problem, try to make what he said then u will find the problem i tried and this is what i was able to do but doesnt work:

3505448.png
 
to paste a trigger, right click where it says the trigger name above Events and hit copy as text than copy in tags.

also, it should be (Matching unit is a hero) equal to true. it will just check if the unit that did the research is hero over and over again, and sicne buildings arent heroes it wont do shit
 
to paste a trigger, right click where it says the trigger name above Events and hit copy as text than copy in tags.

also, it should be (Matching unit is a hero) equal to true. it will just check if the unit that did the research is hero over and over again, and sicne buildings arent heroes it wont do shit

k right but any ideia how to do this logic:

check player for matching unit (matching unit= a hero) add skill "X" to maching unit if number of matching unit abilities =< 5
 
ill just make buy system..... it will work but hero will have to be on a close range to the shop unless is there by any chance a player shop that only the owner can buy from it and make it a big range?
 
Status
Not open for further replies.
Back
Top