Using Waygates

PB_and_J

level 85 anti-spammer
Reaction score
41
Welcome to my first tutorial. It isn't much, but at least it can be used if someone needs help with a Waygate later on. So here it is:

Waygates, The Fastest Way From A to B​


First off, a few things to know about a Waygate:

What is a Waygate? A Waygate is a neutral passive owned building that lets units that enter its vicinty to teleport to a conected Waygate.

Where can I find a Waygate? The Waygate is a building found under: Unit Palette > Neutral Passive > Buildings.

Why use a Waygate? A Waygate is a building that adds that litle bit extra to a map. It is fuctional and practical. It can be used to travel to the other side in a large map, or can be used for a quick getaway from a enemy army in hot pursuit.

Allright, time to get to the good stuff, how to use a Waygate.

So, you placed 2 Waygates on the map in the places you want them to be at.
Start off by double-clicking the Waygate. Here you can choose if you want it to be player owned, its destination, and its color.

Player Owned: Pretty simple, I don't think I need to explain this.

Destination: Here's the tricky part. For a Waygate to work you need 2 regions, which are placed right under your 2 Waygates. I will call them: Region A and Region B, I will also call my Waygates: Waygate A and Waygate B.

Region A will be placed under Waygate B, and vice-versa.

Now double-click on the Waygate A and check that the Waygate is active. Now you may select a region that it will go to. So to make the Waygate work, you will need select Region A as the destination.

But were only half done, Now double-click on Waygate B, check that it's active, and yes, you guessed it, select Region B as its destination.

So you see, you need to have the regions and the Waygates to work together.

Custom Color: The custom color function is cosmetic, as well as functional. It makes the Waygate look nice, as well as gives the player an idea where the Waygate teleports to.

Now that you know the basics, time for some advanced things:

A waygate is a building, and so it can be built, right? So when it is built it will not have a target, right?

Here's a base trigger for the answear to this question:

Code:
Melee Initialization
    Events
        Unit - A unit Finishes construction
    Conditions
        (Unit-type of (Constructed structure)) Equal to Way Gate
    Actions
        Neutral Building - Set (Waygate) destination to (Center of (Playable map area))

Well that will just put the destination to the middle of the map, it can work, however that may not be the casue.

Here is another, more devolloped action, it requires a few triggers, 1 when the waygate is constructed, one when the constructing unit sets the position:

Code:
Events Unit - A unit Finishes construction
    Conditions
        (Unit-type of (Constructed structure)) Equal to Way Gate
    Actions
        Unit - Add Dummy Spell to (Triggering unit)

    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Dummy Spell
    Actions
        Neutral Building - Set (Waygate) destination to (Target point of issued order)
        Unit -Remove Dummy Spell from (Triggering unit)

For the first trigger, I gave my constructing unit a Dummy spell. The next trigger sets the postition of the waygate to the postion of the spell being casted, and removes the spell.

However, setting the waygate destination will leak, use this code to remove the leak:

Code:
custom script: call RemoveLocation( udg_TempPoint )

Well that's it, my first tutorial, I'm pretty sure there's some typos, so if you find some please tell me and il fix them. Also, all feedback will be greatly appreaciated. I will add pictures in a bit, however I dont know who to directly add them to a thread (not an attachment).

-peebz-
 

WastedSavior

A day without sunshine is like, well, night.
Reaction score
216
lol i like it, its down to the point, and even an idiot like me could figure it out
but waygates isn't exactly the hardest thing to explain :p your good, you should write bigger tutorials on more important things
 

PB_and_J

level 85 anti-spammer
Reaction score
41
Thx, I wanted to start small, and get the feel to how a tutorial runs. I might think of wrighting another one in the near future, however I need a topic.
 
D

Dipski

Guest
Shouldn't waygate A teleport to region A and Waygate B teleport to region B
Because the way you have it, they teleport to the location they start at :confused:
 

AgentPaper

From the depths, I come.
Reaction score
107
You should explain the player owned thing, NEVER say, "I think this is simple, so I won't explain it" in a tutorial, the whole point is TO explain it. Plus, I have no idea what it does, does it just change the color? only let that player through? only let him and his allies? nothing at all?
 

PB_and_J

level 85 anti-spammer
Reaction score
41
Added a bit more with help from UnknowVector, Il do a bit more tomorow.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,494
> (Target point of issued order)

Position of (Target unit of ability being cast).

Maybe both ways.
And make sure you can't target an enemy gate (unless you want that as a feature).
 
U

UberNoob

Guest
err

I need help with something :banghead:

about warping :banghead:

Im trying to make two circles of power on each side of this wall but i only want ONE force to use it

i tryed my own but.. either no one can use it or both can

:confused: can someone help me :confused:
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
608
Code:
Teleport
    Events
        Unit - A unit enters ([I]Your Region[/I])
    Conditions
        ((Triggering player) is an ally of Player 1 (Red)) Equal to True
    Actions
        [I]Your Actions[/I]


Here's one you can use that uses a force check.
 
A

_Azuri3l_

Guest
Lol!

There is bug in this trigger! Cuz...
THERE IS NO TRIGGERING PLAYER THERE IS TRIGGERING UNIT
(Owner of (Entering unit) is an ally of (Player 1 Red) equal to true)
This is condytion that should work man xP
 
D

Doomsday

Guest
It's okay if you already don't know how to use a waygate.
You should fix the trigger code, the Events sub-heading is right next to the events that are used in the code.
 
W

WaRRioT

Guest
Waygate trouble

I get how to use waygates, but when i double click a waygate, the box that says "enable transport blah blah blah" (the one that lets you enable the waygate to go somewhere)is grey and I can't check it. When I checked in the object editor, it says the transport ability of waygates was enabled...Can anyone help?
 

zomgguy

New Member
Reaction score
1
@WaRRioT

@WaRRioT

This is because you haven't created any regions. Once you have created a region, the check box will be enabled and you can select one of your existing regions. I had this problem before too...luckily i figured it out myself =)

good luck
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top