- Joined
- Feb 19, 2020
- Messages
- 2
Disclaimer;
I've looked through some tutorials and I've googled a fair bit but I'm coming up short.
I'm not here to have someone write my triggers and variables for me, I'm just looking for some help in understanding how to use the tools correctly.
If anyone could link a tutorial regarding variables that has some practice examples in it that would be much appreciated!
Also I'm VERY new to WC3 WE so Arrays, Variables and Integers are probably a bit out of my depth right now, but I'm trying to learn how to use them.
Goal: Teleport unit(s) inside of Region A to Region B using a String.
I've created a region called (Dungeon entreance outside).
When a Hero unit steps inside the region and the player who owns the unit writes "-enter" in the chat I want all the units inside (Dungeon entreance outside) to teleport to another region (Dungeon entreance inside).
My first attempt:
My guess is that the Trigger hasn't been declared or that I (player red) is the "Triggering unit" since I'm the one entering the string?
Or do I have to enter the String before the unit enters the region?
Anyways, after that I tried creating a Unit Group array variable to store the Hero as a variable.
The problem I'm running into is that I have no idéa if the Variable works, I don't know how to "debug".
Is it possible to see the Variable live while I'm testing the map? So that I can see whether the Hero gets stored in the Variable or not.
Maybe a timer that loops and shows a text saying "variable empty" every 2 seconds as long as the variable is empty?
Something along the lines of "If variable empty (show to (player red (string_empty))) else (show to (player red (string_not_empty)))".
Again, any pointers towards beginner friendly tutorials with practice examples or explanations of different triggers would be much appreciated!
I've looked through some tutorials and I've googled a fair bit but I'm coming up short.
I'm not here to have someone write my triggers and variables for me, I'm just looking for some help in understanding how to use the tools correctly.
If anyone could link a tutorial regarding variables that has some practice examples in it that would be much appreciated!
Also I'm VERY new to WC3 WE so Arrays, Variables and Integers are probably a bit out of my depth right now, but I'm trying to learn how to use them.
Goal: Teleport unit(s) inside of Region A to Region B using a String.
I've created a region called (Dungeon entreance outside).
When a Hero unit steps inside the region and the player who owns the unit writes "-enter" in the chat I want all the units inside (Dungeon entreance outside) to teleport to another region (Dungeon entreance inside).
My first attempt:
-
Enter dungeon unit group Copy
-
Events
-
Unit - A unit enters Dungeon entreance outside <gen>
-
-
Conditions
-
((Entered chat string) Equal to -enter) and (((Triggering unit) is A Hero) Equal to True)
-
-
Actions
-
Unit Group - Pick every unit in (Units in Dungeon entreance outside <gen>) and do (Unit - Move (Triggering unit) instantly to (Center of Dungeon entreance inside <gen>))
-
-
My guess is that the Trigger hasn't been declared or that I (player red) is the "Triggering unit" since I'm the one entering the string?
Or do I have to enter the String before the unit enters the region?
Anyways, after that I tried creating a Unit Group array variable to store the Hero as a variable.
The problem I'm running into is that I have no idéa if the Variable works, I don't know how to "debug".
-
Enter dungeon unit group
-
Events
-
Unit - A unit enters Dungeon entreance outside <gen>
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
-
Actions
-
Unit Group - Add (Triggering unit) to hero_enter_group[0]
-
-
-
Enter outside
-
Events
-
Player - Player 1 (Red) types a chat message containing -enter as An exact match
-
-
Conditions
-
((Triggering unit) is in hero_enter_group[0]) Equal to True
-
-
Actions
-
Unit - Move (Triggering unit) instantly to (Center of Dungeon entreance inside <gen>)
-
-
Is it possible to see the Variable live while I'm testing the map? So that I can see whether the Hero gets stored in the Variable or not.
Maybe a timer that loops and shows a text saying "variable empty" every 2 seconds as long as the variable is empty?
Something along the lines of "If variable empty (show to (player red (string_empty))) else (show to (player red (string_not_empty)))".
Again, any pointers towards beginner friendly tutorials with practice examples or explanations of different triggers would be much appreciated!