Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
What should i do here i don't know. Where should i add a custom value and triggers?custom value is an integer slot assigned to each unit, you can save any number in it. preferably used by unit indexer to store more data.
provide some triggers to better understand your task
RandomizePath For Runner

Events

Conditions

Actions


Set RandomInit = (Random integer number between 1 and 2)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




RandomInit Equal to 1



Then - Actions




Unit - Order Runner to Move To (Center of RedirectEast <gen>)



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






RandomInit Equal to 2





Then - Actions






Unit - Order Runner to Move To (Center of RedirectWest <gen>)





Else - Actions






Do nothing
RandomizePath For Runner

Events

Conditions

Actions


Set RandomInit = (Random integer number between 1 and 2)


Set CV = (Custom value of Runner)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




RandomInit Equal to 1



Then - Actions




Set RunnerPoint[CV] = (Center of RedirectEast <gen>)



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






RandomInit Equal to 2





Then - Actions






Set RunnerPoint[CV] = (Center of RedirectWest <gen>)





Else - Actions


Unit - Order Runner to Move To RunnerPoint[CV]
Events

Time - Every 5.00 seconds
Conditions
Actions

Set CV = (Custom value of Runner)

Unit - Order Runner to Move To RunnerPoint[CV]
Unit - Order Runner to Move To RunnerPoint
Hey Uncle he changed paths. It kinda worked. But the second runner he just stops when he is in redirect west. Do I just add waypoints triggers to the randomize path for runner?You haven't given us enough information, custom value can be used for a million different things. We don't know what you want to accomplish.
But I can guess...
Import a Unit Indexer into your map and change your trigger to this:
Now your Runner is keeping track of their "destination" in a Point array variable.
RandomizePath For Runner
Events
Conditions
Actions
Set RandomInit = (Random integer number between 1 and 2)
Set CV = (Custom value of Runner)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomInit Equal to 1
Then - Actions
Set RunnerPoint[CV] = (Center of RedirectEast <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomInit Equal to 2
Then - Actions
Set RunnerPoint[CV] = (Center of RedirectEast <gen>)
Else - Actions
Unit - Order Runner to Move To RunnerPoint[CV]
You can reference this Point whenever you want, for example every 5 seconds:
Events
Time - Every 5.00 seconds
Conditions
Actions
Set CV = (Custom value of Runner)
Unit - Order Runner to Move To RunnerPoint[CV]
But if you only ever have one Runner at a time then you can just reference a single Point variable:
The Unit Indexer + Custom Value stuff would be useful if you had more than one Runner moving.
Unit - Order Runner to Move To RunnerPoint
i suggest you to read some articles about MUI and what is itHey Uncle he changed paths. It kinda worked. But the second runner he just stops when he is in redirect west. Do I just add waypoints triggers to the randomize path for runner?
Where to find MUI? On Hive?i suggest you to read some articles about MUI and what is it
You're probably sharing the Runner variable between these Units which can only be Set to one Unit at a time. But it's impossible to know for certain without more details + being able to see all of the triggers.Hey Uncle he changed paths. It kinda worked. But the second runner he just stops when he is in redirect west.
I already forget how that system works, but I know it was MUI. I'm pretty sure I answered these types of questions in that thread. Speaking of which, please try to keep this all contained into one thread. I think you have three threads now on the same topic... It's making it difficult to help you and it's close to being considered "spam". If people aren't responding then you need to provide more details, it's not that they don't want to help - they just need you to do some of the leg work for them.Do I just add waypoints triggers to the randomize path for runner?
Yes. MUI means that you're making your triggers work for multiple Units at a time. Although, the concept doesn't necessarily have to apply to Units. It's all about instances -> Having multiple instances of a trigger active at the same time without issues. This can be tough if you don't understand how Variables work, how Event Responses are often unreliable, and how Waits and other delays in time create opportunities for error.Where to find MUI? On Hive?
Events

Time - Every 5.00 seconds
Conditions
Actions

Unit Group - Pick every unit in RunnerGroup and do (Actions)


Loop - Actions



Set Runner = (Picked unit)



Set CV = (Custom value of Runner)



Unit - Order Runner to Move To RunnerPoint[CV]
Actions

Unit - Create 1 Runner (Night Elf)...

Unit Group - Add (Last created unit) to RunnerGroup
Now the waypoint trigger is broken. When enters redirect he goes back the way he came. I think this trigger has broken the waypoint trigger. I did everythink you wrote and what the other guy wrote .You're probably sharing the Runner variable between these Units which can only be Set to one Unit at a time. But it's impossible to know for certain without more details + being able to see all of the triggers.
I already forget how that system works, but I know it was MUI. I'm pretty sure I answered these types of questions in that thread. Speaking of which, please try to keep this all contained into one thread. I think you have three threads now on the same topic... It's making it difficult to help you and it's close to being considered "spam". If people aren't responding then you need to provide more details, it's not that they don't want to help - they just need you to do some of the leg work for them.
Yes. MUI means that you're making your triggers work for multiple Units at a time. Although, the concept doesn't necessarily have to apply to Units. It's all about instances -> Having multiple instances of a trigger active at the same time without issues. This can be tough if you don't understand how Variables work, how Event Responses are often unreliable, and how Waits and other delays in time create opportunities for error.
So generally the learning process for triggers goes like:
1) You learn how to make triggers. But they have some odd bugs/issues and can probably only support one instance at a time.
2) You learn how to fix those odd bugs/issues, but they still only support one instance at a time.
3) You learn how to make those triggers instance-able, meaning you can have as many instances running at the same time without issues.
I would recommend learning those steps in that specific order. That's how I did it, one step at a time.
Anyway, the Unit Indexer + Custom Value stuff is great for accomplishing MUI. But if you want multiple Runners moving around at the same time then you'll also need to solve some other issues, because using a single Runner variable will not work in that case.
For example, you can use a Unit Group variable to track and tell all of your Runners to move to their respective "destinations" at the same time:
You would want to Add each of your Runners to this Unit Group when they're first created or after they've been assigned their RunnerPoint:
Events
Time - Every 5.00 seconds
Conditions
Actions
Unit Group - Pick every unit in RunnerGroup and do (Actions)
Loop - Actions
Set Runner = (Picked unit)
Set CV = (Custom value of Runner)
Unit - Order Runner to Move To RunnerPoint[CV]
Actions
Unit - Create 1 Runner (Night Elf)...
Unit Group - Add (Last created unit) to RunnerGroup
RandomizePathForRunner Time

Events


Time - Every 5.00 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in Runner_Group and do (Actions)



Loop - Actions


Set Runner = (Picked unit)


Set CV = (Custom value of Runner)


Unit - Order Runner to Move To RunnerPoint[CV]


Unit Group - Add (Last created unit) to Runner_Group
RandomizePath For Runner

Events

Conditions

Actions


Set RandomInit = (Random integer number between 1 and 2)


Set CV = (Custom value of Runner)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




RandomInit Equal to 1



Then - Actions




Set RunnerPoint[CV] = (Center of RedirectEast <gen>)



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






RandomInit Equal to 2





Then - Actions






Set RunnerPoint[CV] = (Center of RedirectWest <gen>)





Else - Actions






Unit - Order Runner to Move To RunnerPoint[CV]
Else - Actions

Unit - Order Runner to Move To RunnerPoint[CV]
RandomizePathForRunner Time

Events


Time - Every 5.00 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in Runner_Group and do (Actions)



Loop - Actions




Set Runner = (Picked unit)




Set CV = (Custom value of Runner)




Unit - Order Runner to Move To RunnerPoint[CV]
Is this okay? Or should i change anything? I did everything you told me but he jut stops in place . Sometimes he moves to West region sometimes east and dosen' t go from point to point . I think I broke the Waypoints triggers.1) So the trigger "RandomizePath For Runner" has no Events and I have no idea how you're running it. So that's just a mystery to me.
Also, this very last line does nothing. RandomInt is either going to be 1 or 2, there's no "ELSE" outcome:
Else - Actions
Unit - Order Runner to Move To RunnerPoint[CV]
2) Your "RandomizePathForRunner Time" trigger doesn't look like my trigger, there's very noticeable differences.
Try again and make sure it looks EXACTLY like this:
Understand this:
RandomizePathForRunner Time
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Runner_Group and do (Actions)
Loop - Actions
Set Runner = (Picked unit)
Set CV = (Custom value of Runner)
Unit - Order Runner to Move To RunnerPoint[CV]
- Unit Groups are how you can interact with multiple units at once, giving them all the same "orders" without needing to repeat yourself.
- This trigger is looping over all of the units inside of Runner_Group. This means it runs the "Loop - Actions" once per Unit. (Picked unit) represents each individual Unit. If a Unit hasn't been Added to this group yet then nothing will happen to them.
- You need to Add your Runners to the Unit Group beforehand. For example, when the Runner is first created, OR at the start of the map if the Runner is preplaced, OR when the Runner enters a Region. Whatever makes the most sense for your map and your desired results.
- Unit Groups prevent the same Unit from being Added more than once. However, dead units will NOT be automatically Removed from them. This should not be an issue in your case.
Anyway, I think you need to learn some more of the basics before trying to tackle these issues. You clearly don't understand how any of this stuff works yet - which is fine, but if you try to make triggers beyond your skill level then your map will be a big mess and nothing will ever work.
RandomizePath For Runner

Events


Unit - A unit owned by Player 15 (Turquoise) Is issued an order targeting a point

Conditions


(Triggering unit) Equal to Runner

Actions


Set RandomInit = (Random integer number between 1 and 2)


Set CV = (Custom value of Runner)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




RandomInit Equal to 1



Then - Actions




Set RunnerPoint[CV] = (Center of RedirectEast <gen>)



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






RandomInit Equal to 2





Then - Actions






Set RunnerPoint[CV] = (Center of RedirectWest <gen>)





Else - Actions






Unit - Order Runner to Move To RunnerPoint[CV]
RandomizePathForRunner Time

Events


Time - Every 5.00 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in Runner_Group and do (Actions)



Loop - Actions




Set Runner = (Picked unit)


Set CV = (Custom value of Runner)


Unit - Order Runner to Move To RunnerPoint[CV]
Sorry friend, you don't seem to understand what I'm saying. Just try your best to make your triggers look like mine.Is this okay? Or should i change anything? I did everything you told me but he jut stops in place . Sometimes he moves to West region sometimes east and dosen' t go
I did every thing as you told me. Do I just add some events and thats it?Sorry friend, you don't seem to understand what I'm saying. Just try your best to make your triggers look like mine.
your mistake here is that you try to do as you told to, without understanding tools you have. put aside your runners, find some articles about MUI, read them, try to do something simple, then come backI did every thing as you told me. Do I just add some events and thats it?
I did every thing as you told me. Do I just add some events and thats it?
I have read it all did what it said to do. I just added some events like Uncle said in his on e response . I don't know what else to do.your mistake here is that you try to do as you told to, without understanding tools you have. put aside your runners, find some articles about MUI, read them, try to do something simple, then come back
![]()
GUI Unit Indexer 1.4.0.0
Why Unit Indexing is Important For those not familiar with unit indexers such as UnitIndexingUtils, AutoIndex, Perfect Unit Indexing (PUI), Advanced Indexing and Data Storage (AIDS) or Unit Indexer, this can give you a bit of a crash-course. You definitely want to make your spell MUI. To do...www.hiveworkshop.com
Hows this gonna help with the runner?okay, here is a simple task for you. i need you to create a spell
targeted, allies only, no buff needed. that spell must heal targeted unit 5 times, 1 time a second, 10% of their max hp
i will lead you through a few tasks that will help you understand WE a lil betterHows this gonna help with the runner?
I understand how to make spells, units and triggers. I just don't understand the trigger for the runner and how to get the runner on redirect west.i will lead you through a few tasks that will help you understand WE a lil better
Then you should have no problems. Sorry, i was mistakenI understand how to make spells, units and triggers.
Apollogy accepted friend. Now i need to check if the events and other triggers will work if not I will write again or Ill figure something out.Then you should have no problems. Sorry, i was mistaken
