2 wisps one hero?

810

New Member
Reaction score
1
i want to make a trigger so when 2 wisps enter a circle of power it gives you a hero just like a normal hero selector except with 2 wisps not one...

i can make the hero appear but idk how to kill BOTH wisps, not just one wisp...
 

HydraRancher

Truth begins in lies
Reaction score
197
a units enters
set variable=unit

a unit enters
theres 2 in the region
kill entering unit
kill variable unit

not MUI
 

RaiJin

New Member
Reaction score
40
i want to make a trigger so when 2 wisps enter a circle of power it gives you a hero just like a normal hero selector except with 2 wisps not one...

i can make the hero appear but idk how to kill BOTH wisps, not just one wisp...

Code:
g
    Events
        Unit - A unit enters YourRegionHere
    Conditions
        (Unit-type of (Entering Unit)) Equal to (==) Wisp
    Actions
         Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in YourRectHere Equal to (==) 2
            Then - Actions
                Unit Group - Pick Every Unit in <YourRegionHere> and do (Actions)
                             Loop Actions
                                      Unit - Remove (PickedUnit) from the game
                call DestroyGroup(bj_lastCreatedGroup)
                rest of youractions here
            Else - Actions
 

810

New Member
Reaction score
1
nice ty guys, i like the second one cuz it doesnt use a variable
 

Lumograph090

New Member
Reaction score
22
nice ty guys, i like the second one cuz it doesnt use a variable

Just out of curiosity why do you even need to use 2 wisps to do what you can do with 1? Or even what a lot of people do now where you just click on the hero and it gives you the chosen hero.
 

810

New Member
Reaction score
1
Im using two wisps because that is how the system works...

If a player gets 50 kills they get one wisp to buy a hero with, and certain heroes cost more wisps.

I could use a tavern and gold to do this but i would rather use gold for other things.

Im replicating a game from starcraft and im trying to use the civ system if anyone has played games like that.

PS the second way to make the trigger doesnt work... it just kills one wisp for whatever reason, testing the second...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top