Help needed with -Repick Command and Hero Revival

RodyisGod

New Member
Reaction score
5
Ok, so uhmm.... i hate too say this.. help! :p

Well so i have this -Repick Command.
It should -Repick the main hero of the player.
By Removing the old one from the game and spawn another 'child with dreams'at region. Also it must say the text that already said in this trigger.
I cant get it working great, i can make it destroy, the hero, give a child too the player, and only the text, but not all together. =[

Trigger:
  • The Repick Command
    • Events
      • Player - Player 1 (Red) types a chat message containing -Repick as An exact match
      • Player - Player 2 (Blue) types a chat message containing -Repick as An exact match
      • Player - Player 3 (Teal) types a chat message containing -Repick as An exact match
      • Player - Player 4 (Purple) types a chat message containing -Repick as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -Repick as An exact match
      • Player - Player 6 (Orange) types a chat message containing -Repick as An exact match
      • Player - Player 7 (Green) types a chat message containing -Repick as An exact match
      • Player - Player 8 (Pink) types a chat message containing -Repick as An exact match
    • Conditions
    • Actions
      • Set Temp_Group = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Create 1 A Child with Dreams for (Owner of (Triggering unit)) at (Center of Child With Dreams Location <gen>) facing Default building facing degrees
          • Unit - Remove (Triggering unit) from the game
          • Game - Display to Player Group - Player 1 (Red) for 5.00 seconds the text: You have Repicked, ...
          • Game - Display to Player Group - Player 2 (Blue) for 5.00 seconds the text: You have Repicked, ...
          • Game - Display to Player Group - Player 3 (Teal) for 5.00 seconds the text: You have Repicked, ...
          • Game - Display to Player Group - Player 4 (Purple) for 5.00 seconds the text: You have Repicked, ...
          • Game - Display to Player Group - Player 5 (Yellow) for 5.00 seconds the text: You have Repicked, ...
          • Game - Display to Player Group - Player 6 (Orange) for 5.00 seconds the text: You have Repicked, ...
          • Game - Display to Player Group - Player 7 (Green) for 5.00 seconds the text: You have Repicked, ...
          • Game - Display to Player Group - Player 8 (Pink) for 5.00 seconds the text: You have Repicked, ...
      • Custom script: call DestroyGroup(udg_Temp_Group)


And this is my second problem, hero revival:
this is trigger is total incorrectly.
It should do: If a unit that is one of these heroes die,it will show a text
((name of(triggering player)) has been raped by (Name of monster)
How too let it detect which monster killed you?
Then respawn after 20 seconds, at that region.
But i want it that the level x 25 is the amount of money you have too pay.
Can't get it working also.
Trigger:
  • Events
    • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to |cffff0000Defender|r
      • (Unit-type of (Dying unit)) Equal to |cffff0000Swordsman|r
      • (Unit-type of (Dying unit)) Equal to |cff0000FFElementalist|r
      • (Unit-type of (Dying unit)) Equal to |cff0000FFPriestess|r
      • (Unit-type of (Dying unit)) Equal to |cff0000FFShade|r
      • (Unit-type of (Dying unit)) Equal to |cff32cd32Archer|r
    • Actions
      • Game - Display to (All players) for 3.00 seconds the text: ((Name of (Triggering player)) + has been Raped)
      • Game - Display to Player Group - Player 1 (Red) for 3.00 seconds the text: You have died. You ...
      • Game - Display to Player Group - Player 2 (Blue) for 3.00 seconds the text: You have died. You ...
      • Game - Display to Player Group - Player 3 (Teal) for 3.00 seconds the text: You have died. You ...
      • Game - Display to Player Group - Player 4 (Purple) for 3.00 seconds the text: You have died. You ...
      • Game - Display to Player Group - Player 5 (Yellow) for 3.00 seconds the text: You have died. You ...
      • Game - Display to Player Group - Player 6 (Orange) for 3.00 seconds the text: You have died. You ...
      • Game - Display to Player Group - Player 7 (Green) for 3.00 seconds the text: You have died. You ...
      • Game - Display to Player Group - Player 8 (Pink) for 3.00 seconds the text: You have died. You ...
      • Wait 20.00 seconds
      • Hero - Instantly revive (Revivable Hero) at (Center of Southern Survivalist Camp <gen>), Hide revival graphics


This would be greatly apperciated =]
Thank you very much..=[

EDIT:

When i use this trigger: My game freezes, why the fk.
Maybie because i have alot of text, cause its the story? i dont know.

Trigger:
  • The Story Command
    • Events
      • Player - Player 1 (Red) types a chat message containing -Story as An exact match
      • Player - Player 2 (Blue) types a chat message containing -Story as An exact match
      • Player - Player 3 (Teal) types a chat message containing -Story as An exact match
      • Player - Player 4 (Purple) types a chat message containing -Story as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -Story as An exact match
      • Player - Player 6 (Orange) types a chat message containing -Story as An exact match
      • Player - Player 7 (Green) types a chat message containing -Story as An exact match
      • Player - Player 8 (Pink) types a chat message containing -Story as An exact match
    • Conditions
    • Actions
      • Wait 2.00 seconds
      • Game - Display to Player Group - Player 1 (Red) for 30.00 seconds the text: In the World of Izr...
      • Game - Display to Player Group - Player 2 (Blue) for 30.00 seconds the text: In the World of Izr...
      • Game - Display to Player Group - Player 3 (Teal) for 30.00 seconds the text: In the World of Izr...
      • Game - Display to Player Group - Player 4 (Purple) for 30.00 seconds the text: In the World of Izr...
      • Game - Display to Player Group - Player 5 (Yellow) for 30.00 seconds the text: In the World of Izr...
      • Game - Display to Player Group - Player 6 (Orange) for 30.00 seconds the text: In the World of Izr...
      • Game - Display to Player Group - Player 7 (Green) for 30.00 seconds the text: In the World of Izr...
      • Game - Display to Player Group - Player 8 (Pink) for 30.00 seconds the text: In the World of Izr...
 

Jayykob

New Member
Reaction score
1
Try this:

Trigger:
  • Repick All Heroes
    • Events
      • Player - Player 2 (Blue) types a chat message containing -repick as An exact match
      • Player - Player 3 (Teal) types a chat message containing -repick as An exact match
      • Player - Player 4 (Purple) types a chat message containing -repick as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
      • Player - Player 6 (Orange) types a chat message containing -repick as An exact match
      • Player - Player 8 (Pink) types a chat message containing -repick as An exact match
      • Player - Player 9 (Gray) types a chat message containing -repick as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -repick as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -repick as An exact match
      • Player - Player 12 (Brown) types a chat message containing -repick as An exact match
    • Conditions
      • GameMode Equal to MODE_AllRandom_AllPick
      • Player_Already_Picked[(Player number of (Triggering player))] Equal to 1
    • Actions
      • Quest - Display to (All enemies of (Triggering player)) the Hint message: A player has repick...
      • 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 RandomTotal_All = (RandomTotal_All + 1)
          • Set RandomData_All[RandomTotal_All] = (Load (String((Unit-type of (Picked unit)))) of All from (Last created game cache))
          • Player Group - Pick every player in Players and do (Actions)
            • Loop - Actions
              • Player - Make (Unit-type of (Picked unit)) Available for training/construction by (Picked player)
          • Unit - Remove (Picked unit) from the game
      • Set Player_Already_Picked[(Player number of (Triggering player))] = (Player_Already_Picked[(Player number of (Triggering player))] + 1)
      • Player - Add Repick_Cost_Ammount to (Triggering player) Current gold
      • If (RandomTotal_All Greater than 1) then do (Set Random_Hero = (Random integer number between 1 and (RandomTotal_All - 1))) else do (Set Random_Hero = 1)
      • Unit - Create 1 Heroes_All[RandomData_All[Random_Hero]] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
      • Quest - Display to (All enemies of (Triggering player)) the Hint message: (A player has randomed + (Name of (Last created unit)))
      • Player Group - Pick every player in Players and do (Actions)
        • Loop - Actions
          • Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)
      • Set RandomData_All[Random_Hero] = RandomData_All[RandomTotal_All]
      • Set RandomTotal_All = (RandomTotal_All - 1)


Trigger:
  • Revive Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Unit Group - Add (Dying unit) to RevivableHeroes
      • Set TempReal = (((Real((Hero level of (Dying unit)))) x Hero_Revive_Time_Factor) + 5.00)
      • If (UberMode_On Equal to True) then do (Set TempReal = (TempReal x 0.50)) else do (Do nothing)
      • Countdown Timer - Start ReviveTimers[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in TempReal seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiboard_ShowDeaths Equal to False
        • Then - Actions
          • Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Owner of (Dying unit)))
          • Countdown Timer - Show (Last created timer window) for (Owner of (Dying unit))
          • Set RevivableTimersWindows[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
        • Else - Actions


Trigger:
  • Revive Hero Timer
    • Events
      • Time - ReviveTimers[2] expires
      • Time - ReviveTimers[3] expires
      • Time - ReviveTimers[4] expires
      • Time - ReviveTimers[5] expires
      • Time - ReviveTimers[6] expires
      • Time - ReviveTimers[8] expires
      • Time - ReviveTimers[9] expires
      • Time - ReviveTimers[10] expires
      • Time - ReviveTimers[11] expires
      • Time - ReviveTimers[12] expires
    • Conditions
    • Actions
      • Unit Group - Pick every unit in RevivableHeroes and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Remaining time for ReviveTimers[(Player number of (Owner of (Picked unit)))]) Less than 1.00
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Picked unit)) is in PlayersSentinel) Equal to True
                • Then - Actions
                  • Hero - Instantly revive (Picked unit) at (Center of Hero Creation Sentinel <gen>), Show revival graphics
                • Else - Actions
                  • Hero - Instantly revive (Picked unit) at (Center of Hero Creation Scourge <gen>), Show revival graphics
            • Else - Actions


Trigger:
  • Revive Hero Tavern
    • Events
      • Unit - A unit Finishes reviving
    • Conditions
      • ((Reviving Hero) is in RevivableHeroes) Equal to True
    • Actions
      • Unit Group - Remove (Reviving Hero) from RevivableHeroes
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiboard_ShowDeaths Equal to True
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row Multiboard_Spots[(Player number of (Owner of (Reviving Hero)))] to
        • Else - Actions
          • Countdown Timer - Destroy RevivableTimersWindows[(Player number of (Owner of (Reviving Hero)))]
      • Camera - Pan camera for (Owner of (Reviving Hero)) to (Position of (Reviving Hero)) over 0.60 seconds
      • Selection - Select (Reviving Hero) for (Owner of (Reviving Hero))


Did this help?
 

RodyisGod

New Member
Reaction score
5
Try this:

Trigger:
  • Repick All Heroes
    • Events
      • Player - Player 2 (Blue) types a chat message containing -repick as An exact match
      • Player - Player 3 (Teal) types a chat message containing -repick as An exact match
      • Player - Player 4 (Purple) types a chat message containing -repick as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
      • Player - Player 6 (Orange) types a chat message containing -repick as An exact match
      • Player - Player 8 (Pink) types a chat message containing -repick as An exact match
      • Player - Player 9 (Gray) types a chat message containing -repick as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -repick as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -repick as An exact match
      • Player - Player 12 (Brown) types a chat message containing -repick as An exact match
    • Conditions
      • GameMode Equal to MODE_AllRandom_AllPick
      • Player_Already_Picked[(Player number of (Triggering player))] Equal to 1
    • Actions
      • Quest - Display to (All enemies of (Triggering player)) the Hint message: A player has repick...
      • 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 RandomTotal_All = (RandomTotal_All + 1)
          • Set RandomData_All[RandomTotal_All] = (Load (String((Unit-type of (Picked unit)))) of All from (Last created game cache))
          • Player Group - Pick every player in Players and do (Actions)
            • Loop - Actions
              • Player - Make (Unit-type of (Picked unit)) Available for training/construction by (Picked player)
          • Unit - Remove (Picked unit) from the game
      • Set Player_Already_Picked[(Player number of (Triggering player))] = (Player_Already_Picked[(Player number of (Triggering player))] + 1)
      • Player - Add Repick_Cost_Ammount to (Triggering player) Current gold
      • If (RandomTotal_All Greater than 1) then do (Set Random_Hero = (Random integer number between 1 and (RandomTotal_All - 1))) else do (Set Random_Hero = 1)
      • Unit - Create 1 Heroes_All[RandomData_All[Random_Hero]] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
      • Quest - Display to (All enemies of (Triggering player)) the Hint message: (A player has randomed + (Name of (Last created unit)))
      • Player Group - Pick every player in Players and do (Actions)
        • Loop - Actions
          • Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)
      • Set RandomData_All[Random_Hero] = RandomData_All[RandomTotal_All]
      • Set RandomTotal_All = (RandomTotal_All - 1)


Trigger:
  • Revive Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Unit Group - Add (Dying unit) to RevivableHeroes
      • Set TempReal = (((Real((Hero level of (Dying unit)))) x Hero_Revive_Time_Factor) + 5.00)
      • If (UberMode_On Equal to True) then do (Set TempReal = (TempReal x 0.50)) else do (Do nothing)
      • Countdown Timer - Start ReviveTimers[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in TempReal seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiboard_ShowDeaths Equal to False
        • Then - Actions
          • Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Owner of (Dying unit)))
          • Countdown Timer - Show (Last created timer window) for (Owner of (Dying unit))
          • Set RevivableTimersWindows[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
        • Else - Actions


Trigger:
  • Revive Hero Timer
    • Events
      • Time - ReviveTimers[2] expires
      • Time - ReviveTimers[3] expires
      • Time - ReviveTimers[4] expires
      • Time - ReviveTimers[5] expires
      • Time - ReviveTimers[6] expires
      • Time - ReviveTimers[8] expires
      • Time - ReviveTimers[9] expires
      • Time - ReviveTimers[10] expires
      • Time - ReviveTimers[11] expires
      • Time - ReviveTimers[12] expires
    • Conditions
    • Actions
      • Unit Group - Pick every unit in RevivableHeroes and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Remaining time for ReviveTimers[(Player number of (Owner of (Picked unit)))]) Less than 1.00
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Owner of (Picked unit)) is in PlayersSentinel) Equal to True
                • Then - Actions
                  • Hero - Instantly revive (Picked unit) at (Center of Hero Creation Sentinel <gen>), Show revival graphics
                • Else - Actions
                  • Hero - Instantly revive (Picked unit) at (Center of Hero Creation Scourge <gen>), Show revival graphics
            • Else - Actions


Trigger:
  • Revive Hero Tavern
    • Events
      • Unit - A unit Finishes reviving
    • Conditions
      • ((Reviving Hero) is in RevivableHeroes) Equal to True
    • Actions
      • Unit Group - Remove (Reviving Hero) from RevivableHeroes
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiboard_ShowDeaths Equal to True
        • Then - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row Multiboard_Spots[(Player number of (Owner of (Reviving Hero)))] to
        • Else - Actions
          • Countdown Timer - Destroy RevivableTimersWindows[(Player number of (Owner of (Reviving Hero)))]
      • Camera - Pan camera for (Owner of (Reviving Hero)) to (Position of (Reviving Hero)) over 0.60 seconds
      • Selection - Select (Reviving Hero) for (Owner of (Reviving Hero))


Did this help?

Well, why so hard at the repick thing, im trying 1 now, and its 5 x as small, but it works..ok thats weird. using ur revive tho :p

Edit: The, Revive contains level x Time?? WTF? i needed level x cash have to pay.
U copied/pasted this of somewhere right? cause it does not do what i said at all.
sorry, and multiboard? wat the..

Nevermind, my friends coming over too help me..
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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