Teleport with out rect

Moridin

Snow Leopard
Reaction score
144
If by rect you mean the region people place within it to use with the event "Unit - A unit enters region" then yes, I'm pretty sure you can.

You could use a condition to check the distance between the point at the center of the circle of power and any nearby units. If it's close enough (on top of the circle of power) then teleport.
If you could elaborate as to why you don't want to use rects, I'm sure we can help you a little better :).
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
well, of course there is a way, there are plenty i guess but the question is if you really need them.
basically you can use whatever condition to trigger the teleportation and use whatever location to teleport to.
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
can't he just give the circle that Waypoint ability (or is there any)?

I'm not sure how Waypoints work though

EDIT: yeah the Waygate w/e
 

Moridin

Snow Leopard
Reaction score
144
@Dinowc:

I think you meant the waygate ability. They work as links from one spot to another via pathing. So if you order a unit to move somewhere far away, it will take a shorter route via a waygate rather than walk a longer route.
 

Azylaminaz

Vox Populi
Reaction score
91
Stick to waygates as units instinctively use them as shorter paths.

To set the waygate to a point instead of a region, simply use a trigger.

I couldn't find the GUI calls, but the JASS natives exist.
Trigger:
  • Custom script: call WaygateSetDestination(<your unit>, x, y)

<your unit> being the unit... A variable declared in GUI (the normal way) would start with udg_ and all spaces would be replaced with _'s.

x and y are locations (real, meaning they need a decimal if you use the standard editor).
Example:
Trigger:
  • Custom script: call WaygateSetDestination(udg_myUnit, 712., -6123)



Edit:
There is also the BJ function WaygateSetDestinationLocBJ which takes in a unit and location.
Trigger:
  • Custom script: call WaygateSetDestinationLocBJ(udg_myUnit, udg_myLoc)
 

Lmfaocj

Active Member
Reaction score
1
If you could elaborate as to why you don't want to use rects, I'm sure we can help you a little better :).

I don't want to use rects because if they don't click on the circle they will still just teleport.

I made something like this
Trigger:
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Target unit of issued order) Equal to (==) Circle of Power 0023 &lt;gen&gt;
    • Then - Actions
      • Wait until (((Triggering unit) is in (Units within 50.00 of (Position of Circle of Power 0023 &lt;gen&gt;))) Equal to (==) True), checking every 0.10 seconds
      • Unit - Move (Triggering unit) instantly to (Position of Circle of Power 0024 &lt;gen&gt;)
    • Else - Actions

but it leeks or what ever because if you click on "Circle of Power 0024 <gen>" then click on "Circle of Power 0023 <gen>" it will teleport you right back.
 

Inflicted

Currently inactive
Reaction score
63
oh. i think i understand, he wants you to have to click on the TP'er before it actually moves the units.

i presume then u only have one unit/hero then?

just make sumthn like

Trigger:
  • events
    • Player - player selects &quot;Circle of Power&quot;
    • conditions
    • (hero[Player Number of Triggering Player] is alive) equal to true
    • (hero[Player number of Triggering Player] is within 512 range of &quot;Circle of Power&quot;) equal to true
      • or something like that..
    • actions
    • Unit - move hero[Player Number of Triggering Hero] to &quot;region**&quot;
    • move camera etc.


just set your hero to an unit array, and this should work, if i understood you correctly.
 

Moridin

Snow Leopard
Reaction score
144
@Noob GamerMkrR:

That won't work, right clicking a circle of power isn't selecting it.

Try this event and condition(s):

Trigger:
  • Trigger
    • Events
      • Unit - A unit is issued an order targeting a unit - Generic unit event
    • Conditions
      • (Issued order Equal to (order(smart)) -&gt; Order comparison I think.
      • Unit-type of (Target unit of (issued order)) Equal to Circle of Power -&gt; Unit-type comparison
    • Actions
      • Wait till unit gets close (either using a periodic or a condition wait)
      • ------------------Tele actions after this (or in your periodic check trigger) -----------------------
 

Jedi

New Member
Reaction score
63
That won't work too, unit might change his order.You need to use multiple triggers to track.

Just use rects, this is totaly useless for me.Every w3 players know if they enter a circle, they will move somewhere else.
 

Moridin

Snow Leopard
Reaction score
144
That won't work too, unit might change his order.You need to use multiple triggers to track.
It will work, you just need to add more conditions to the periodic part. The event to check if a unit clicks on is perfectly accurate (not in literal words, the trigger was freehand :p).

Actually, I can think of another solution. Use the waygate ability as mentioned by Dinowc. That creates a pathing link between two spots. If you right click the waygate, then the unit teleports, if you decide to move through the waygate's position, nothing happens*.

*Another thing that could happen is the unit teleports out on one end and in on the other end instantaneously.
 

Moridin

Snow Leopard
Reaction score
144
i know.
why not just tell players they have to left-click on the teleporter?
...because if you used that, you could use the teleporter from anywhere on the map, as long as you can select it....
 

Lmfaocj

Active Member
Reaction score
1
Thanks for your help every one, I guess I have no choice but to use it the way I made it...
 

Inflicted

Currently inactive
Reaction score
63
@ Moridin
...because if you used that, you could use the teleporter from anywhere on the map, as long as you can select it....

notice this: (hero[Player number of Triggering Player] is within 512 range of "Circle of Power") equal to true
?

yeah, if its an rpg. and u have one hero.. then you wouldnt have problems with clicking it on the other side of the map or watever..
 

Moridin

Snow Leopard
Reaction score
144
notice this: (hero[Player number of Triggering Player] is within 512 range of "Circle of Power") equal to true
?

yeah, if its an rpg. and u have one hero.. then you wouldnt have problems with clicking it on the other side of the map or watever..
My mistake :p. I didn't fully read your trigger.
 

Inflicted

Currently inactive
Reaction score
63
...because if you used that, you could use the teleporter from anywhere on the map, as long as you can select it....

nope. notice i made this:
"(hero[Player number of Triggering Player] is within 512 range of "Circle of Power") equal to true "
 

sentrywiz

New Member
Reaction score
25
Am I not getting this or thread lives on because people think complex ways?


Trigger:
  • Blablabla
    • Events
      • Unit - A unit comes within (Min(1.00, 25.00)) of Circle of Power 0006 &lt;gen&gt;
    • Conditions
    • Actions
      • Unit - Move (Triggering unit) instantly to (Position of Circle of Power 0005 &lt;gen&gt;)



This doesn't use region. It also doesn't require selecting. And if you want to stop the player from doing something else while you "animate" pause the unit then unpause it when it "teleports".


I still don't get it, why so many people on such easy trigger? :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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