• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Command -switch

Status
Not open for further replies.
Level 9
Joined
Jun 25, 2009
Messages
427
People, i have a huge problem, i'm creating AoS type map (0.19b version now) and all people who play it ask: "Please implement a -switch system :cry:"
Problem: I don't know how to do it.

Thing i need: The system, AT LEAST THE VOTING : )
+rep, credits on map loading will be given

Tiche3:grin:
 
I think he means a switch system like the one from dota.
When someone writes -switch it starts a vote whether the one who wrote it is allowed to switch the team and if evry player confirmed the vote the player is switched into the other team for someone who is left before.
 
Okay, thanks for trying, +rep : )

Thanks for +rep me :) I'll giving u back one :) But hey do you need anything else that u want help with? Anything but strings and messages stuffs xD
If you haven't create any quests yet i can do that with the text u want to have and so on :) I love to create Quests xD It must not be a "Quest" that the Quest log is for, it can be a tutorial of the map, Info of the map, how-to, credits for other players and so on :)
 
could somebody link me to the "votekick" system, thanks.

Tjor, could you make, or help me make in the "quest" section (f9) things i could write about my map?

Thanks.

Tiche3:grin:

{EDIT 1}
*bump* :cry:

I wrote to hell gate, the maker of the system, he didn't write it back, hope to hear from him.

Anyway, i'm still waiting.

Tiche3:grin:

{EDIT 2}
*bump*

Still no answer, anyone?
 
Last edited by a moderator:
Working on it ;) BUT i will be releasing it as a system when the leaks are fixed.

Edit:
Ok I have a functioning script, you just need to add what you want to it and I managed to do it all in GUI.

It still leaks, so if you want to you can fix that.

I will make it a Jass or vJass system in a couple days. I may also release a GUI version.

But alot of people ask for this and here ya go.

If you find any bugs let me know.
 

Attachments

Last edited:
I should have posted a "syntax" with this command.
You cannot switch an allied player.
You cannot switch with players 11 and 12.
The syntax is:
-switch [player number] [player number]

You can make it where a certain player cannot be switched this way:
In the trigger "Switch Start":
  • Switch Start
    • Events
      • Player - Player 1 (Red) types a chat message containing -switch as A substring
      • Player - Player 2 (Blue) types a chat message containing -switch as A substring
      • Player - Player 3 (Teal) types a chat message containing -switch as A substring
      • Player - Player 4 (Purple) types a chat message containing -switch as A substring
      • Player - Player 5 (Yellow) types a chat message containing -switch as A substring
      • Player - Player 6 (Orange) types a chat message containing -switch as A substring
      • Player - Player 7 (Green) types a chat message containing -switch as A substring
      • Player - Player 8 (Pink) types a chat message containing -switch as A substring
      • Player - Player 9 (Gray) types a chat message containing -switch as A substring
      • Player - Player 10 (Light Blue) types a chat message containing -switch as A substring
    • Conditions
      • switch_on Equal to False
    • Actions
      • Set switch1 = (Integer((Substring((Entered chat string), 9, 10))))
      • Set switch2 = (Integer((Substring((Entered chat string), 11, 13))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Add Condition Here)
          • switch1 Greater than 0
          • switch2 Greater than 0
          • switch2 Less than 11
          • switch1 Less than 11
          • ((Player(switch1)) is an ally of (Player(switch2))) Equal to False
        • Then - Actions
          • Set switch_on = True
          • Game - Display to (All players) for 10.00 seconds the text: (|c00FF0000Vote:|r Switch + ((Name of (Player(switch1))) + ( and + ((Name of (Player(switch2))) + ?))))
          • Countdown Timer - Start switch_time as a One-shot timer that will expire in 60.00 seconds
        • Else - Actions
          • Game - Display to (All players) for 10.00 seconds the text: This switch cannot ...
Add a condition where it says (ADD CONDITION HERE).
If you would like to Add a "teleport" like in dota then you need to do the following:
  • Put switch1 and switch2 heroes in variables.
  • Pause every unit in the map.
  • Fade the screen with a cinematic effect.
  • Move the heroes instantly to the respawn region in their new base.
  • Modify the respawn code in your AOS to know that the unit is now on the other team.

    Example:
    • Respawn Trigger
      • Events
        • Unit - A unit Dies
      • Conditions
        • ((Dying unit) is A Hero) Equal to True
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Owner of (Dying unit)) is an ally of Player of Team 1 Creeps) Equal to True
          • Then - Actions
            • (Respawn in team 1 base)
          • Else - Actions
            • (Respawn in team 2 base)
  • Modify anything that checks a players number to use forces or "Player Groups". (If you have to use player groups move the players to the other player group when the switch finishes.)
  • Bring screen back.
  • Unpause all units.

I know its a lot of work to do all of that but it works.
If you need anymore help PM me.
 
Status
Not open for further replies.
Back
Top