problem with the condition: "Terrain pathing is off"

Idontknowyou

New Member
Reaction score
33
I need to check if certain points are walkable; the condition "Terrain pathing is off" works perfectly fine for doodads and terrain, but not for destructibles and buildings. Could somebody show me a custom script that determines if a location has been made unwalkable by a building or destructible?


Edit: If there is no simple solution, I will just have to rethink my trigger

Edit: If you think I've worded this wierdly and don't understand what I am trying to ask... you should let me know = \.
 
thank you :p.... I was really hoping to have a one liner but this works i guess.

Edit: a lot of people on that forum are saying that this function is inaccurate... If somebody could post something that might work better, I'd appreciate it.

Edit: I made my own version in GUI (JASS seemed a bit unnecessary for such a simple trigger) and it seems to be working fine.
 
I prefer what I have here, short and sweet

Pathing Check
Trigger:
  • Events
    • Conditions
    • Actions
      • Item - Create Pathing_Checker at CheckPathingHere
      • Set PathingChecker = (Last created item)
      • Set ConfirmPathing = (Position of PathingChecker)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (((X of CheckPathingHere) - (X of ConfirmPathing)) Less than or equal to 2.00) and (((X of CheckPathingHere) - (X of ConfirmPathing)) Greater than or equal to -2.00)
              • (((Y of CheckPathingHere) - (Y of ConfirmPathing)) Less than or equal to 5.00) and (((Y of CheckPathingHere) - (Y of ConfirmPathing)) Greater than or equal to -5.00)
        • Then - Actions
          • Set PathingisBlocked = False
        • Else - Actions
          • Set PathingisBlocked = True
      • Custom script: call RemoveLocation (udg_CheckPathingHere)
      • Custom script: call RemoveLocation (udg_ConfirmPathing)
      • Item - Remove PathingChecker


Check pathing here is set before running the trigger, I do that so I can use this for any spell or function that requires a pathing check ( knock backs, line of sight checks, etc)
 
But you have to write these lines each time you want to use it ?
Also your solution is more innacurate and should be less efficient.

Meh, honestly i don't care about it.
I won't start a new lame war gui vs jass, we all know the end.

Sorry if you feel offended.
 
nono, I don't rewrite it everytime i need to use it, I just do this

Trigger:
  • Set CheckPathingHere = (whichever spot I'm checking)
    • Trigger - Run Pathing Check <gen> (checking conditions)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • PathingisBlocked Equal to True
      • Then - Actions
      • ...........



It's really not much less efficient than having a windwalk dummy moving around everywhere........

It works very accurately to, I've tested it a lot
 
I know it's not the most efficient trigger out there, but it works, it's easy, and it DOES NOT lag, even when run 100 times a second.

I believe you that the JASS trigger is better than my GUI trigger, but I do not know JASS, and I'd rather use a trigger that I understand than copy and paste a block of code that I only vaguely understand.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top