Repick

Regon

New Member
Reaction score
0
Hi guys need a little trigger help I got the repick all figured out and everything but im clueless on how to make the hero you repick the same level as the hero you gave up help if you can:eek:
Repick
Events
Player - Player 1 (Red) types a chat message containing -repick as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 Select a unit for Player 1 (Red) at (Center of Select a unit <gen>) facing Default building facing degrees
Game - Display to (All players) the text: -repick has a 20 se...
Trigger - Turn off (This trigger)
Wait 20.00 seconds
Trigger - Turn on (This trigger)
 

kaboo

New Member
Reaction score
45
Code:
[COLOR="Red"]your trigger[/COLOR]
Events
Player - Player 1 (Red) types a chat message containing -repick as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
[COLOR="DeepSkyBlue"]- set RepUnit[player number of owner of picked unit] = picked unit[/COLOR]
Unit - Create 1 Select a unit for Player 1 (Red) at (Center of Select a unit <gen>) facing Default building facing degrees
Game - Display to (All players) the text: -repick has a 20 se...
Trigger - Turn off (This trigger)
Wait 20.00 seconds
Trigger - Turn on (This trigger) 
[COLOR="DeepSkyBlue"]- turn on repick lvl[/COLOR]
Code:
[COLOR="Red"]repick lvl [/COLOR][COLOR="Lime"]{initialy off}[/COLOR]
events - unit sells a unit
conditions - owner of sold unit equal to owner of RepUnit[player number of sold unit]
actions - set level of sold unit to level of RepUnit[player number of sold unit]
 

Regon

New Member
Reaction score
0
ermmm I think i get his triggering now but i dont know where the condition is
Repick 1vs1
Events
Unit - A unit Sells a unit
Conditions
Actions
need a little explaining on action and condition
 

kaboo

New Member
Reaction score
45
the condition is a player comparision
and the action is - unit set leve of ability for unit
RepUnit - is unit variable with array size 12(max number of players)
[player number of ...] is index of this array
 
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