Xem hộ mình cái này, repick được nhưng sao lại lỗi không có thông báo nhỉ
Repick Command
Events
Player - Player 2 (Blue) types a chat message containing -rp as An exact match
Player - Player 3 (Teal) types a chat message containing -rp as An exact match
Player - Player 4 (Purple) types a chat message containing -rp as An exact match
Player - Player 5 (Yellow) types a chat message containing -rp as An exact match
Player - Player 6 (Orange) types a chat message containing -rp as An exact match
Player - Player 8 (Pink) types a chat message containing -rp as An exact match
Player - Player 9 (Gray) types a chat message containing -rp as An exact match
Player - Player 10 (Light Blue) types a chat message containing -rp as An exact match
Player - Player 11 (Dark Green) types a chat message containing -rp as An exact match
Player - Player 12 (Brown) types a chat message containing -rp as An exact match
Conditions
(Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 1
((Triggering player) Current gold) Greater than or equal to 200
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions
Set PlayerGroupArray[9] = (All players)
Player Group - Pick every player in PlayerGroupArray[9] and do (Actions)
Loop - Actions
Player - Make (Unit-type of (Picked unit)) Available for training/construction by (Picked player)
Custom script: call DestroyForce (udg_PlayerGroupArray[9])
Unit - Remove (Picked unit) from the game
Set Random_Hero = (Random integer number between 1 and Random_Count)
Unit - Create 1 Hero_Array[Random_Hero] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
Set Hero_Array[Random_Hero] = Hero_Array[Random_Count]
Selection - Select (Last created unit) for (Owner of (Last created unit))
Player - Add -200 to (Triggering player) Current gold
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Player((Integer A)))) + (®· repick ngÉu nhiªn ®ÂÂĂ®c + (Name of (Last created unit))))
Camera - Pan camera for (Triggering player) to ((Triggering player) start location) over 0.00 seconds
Set PlayerGroupArray[10] = (All players)
Player Group - Pick every player in PlayerGroupArray[10] and do (Actions)
Loop - Actions
Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)
Set Random_Data[Random_Hero] = Random_Count
Set Random_Count = (Random_Count - 1)