switching between heroes

Mitsarugi

New Member
Reaction score
0
I would like to know how to switch between heroes by clicking on there icon?
I have 1 hero at a certain location which cant move and i would like it to switch with the other 1 that is in battle by clicking on its icon, switching them in battle
And they should EXP at the same time being the same level all the time
 

xPass

All aboard the xPass Express!
Reaction score
26
Make it a skill. Use something like Crow Form?
 

irgan

New Member
Reaction score
3
I'm pretty beginner at this but, wouldnt it just be easier to use like a dummy ability (Switch) then use the triggers
"WHen a unit finishes casting an ability= Switch"
Set TmpPoint1= Position of Triggering Unit
Set TmpPoint2= Position of (other unit)
"Move Unit Instantly to TmpPoint2"
then
"Move Unit(your standby one) Instantly to TmpPoint1 ?
Granted you'll probably have to put the heroes into some type of variables, one for the hero out in the battle area, one for the standby hero and swap them out in the variables too.
 

Mitsarugi

New Member
Reaction score
0
so how could i switch them by clicking there icon?
i can save there position now but how to switch by icon click?
 

xPass

All aboard the xPass Express!
Reaction score
26
Make a condition skill. Like create a skill. Then when a player uses skill, then check skill. If is the skill, then Actions
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Clicking on the icon selects the unit, so just do something like this.

Trigger:
  • Trigger
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • ((Selected unit) is A Hero) Equal to True
    • Actions
 

Mitsarugi

New Member
Reaction score
0
that doesnt work , i want it to be so that when double clicking its icon it switches the heroes from positions
maybe double selecting them but dont know if thats possible?
 

HydraRancher

Truth begins in lies
Reaction score
197
Double clicking is easy. Basically, upon the first click you register a variable as true, then half a second later, you register it untrue. But before then, if the unit is clicked again, and your variable is true, then perform actions.
 

Mitsarugi

New Member
Reaction score
0
well i found out a way to do this but i'm stuck, i made a region ,if the hero(1) is selected and is in this region it saves the position of the hero(2) that isn't in the region and then switches the hero(1) to the saved position of hero(2) and hero(2) to the position of hero(1) (the region).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top