Blink crashes wc3?

Wratox1

Member
hello and happy new year!:D

i was going to create some heroes for my map but i dont have access to my map on this computer so i created a new map and started to make a hero i was going to import to my map later.

and i made one ability; Jump, its based on blink and its supposed to teleport the hero to the point you order the hero to go, but only for 500 range.

but here the thing; when i order the hero to go and he is about to "Jump" the game crashes..
heres my trigger:
Trigger:
  • Jump
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Jumper
    • Actions
      • Unit - Order (Triggering unit) to Night Elf Warden - Blink (Target point of issued order)


at the moment the cast range and maximum range are set to 9999, but it doesnt work anyway..

happy for help
 

Ayanami

칼리
That's because when you order the unit to blink, it triggers the event again. Thus, an infinite loop occurs, causing them game to crash. Add this under condition.

Trigger:
  • Conditions
    • Or - Any (Conditions) are true
      • (Issued order) Equal to (Order(smart))
      • (Issued order) Equal to (Order(move))
 

Nenad

~Choco Coronet~ Omnomnom
Alternatively you can turn off the trigger at the start of the actions and turn it on again in the end of the actions ^^
 

Wratox1

Member
That's because when you order the unit to blink, it triggers the event again. Thus, an infinite loop occurs, causing them game to crash. Add this under condition.

Trigger:
  • Conditions
    • Or - Any (Conditions) are true
      • (Issued order) Equal to (Order(smart))
      • (Issued order) Equal to (Order(move))
thx it worked:thup: +rep
EDIT:sorry need to spread some first..
 

Wratox1

Member
umm i got another problem with this spell, should i post in this thread or make a new one?

sorry for doublepost:(
 

Wratox1

Member
Sure, post it here :D

(Just edit instead of double posting ;))
yeah i know but how many checks threads that the last post is edited, it doeasnt show up first in the "thread-list"...

Okay heres the problem, ive fixed the spell so that you can teleport where you havent been on the map, check my trigger:
Trigger:
  • Jump
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Jumper
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(move))
          • (Issued order) Equal to (Order(smart))
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than or equal to 13.00
          • Or - Any (Conditions) are true
            • Conditions
              • ((Target point of issued order) is masked for (Owner of (Triggering unit))) Equal to True
              • ((Target point of issued order) is fogged for (Owner of (Triggering unit))) Equal to True
        • Then - Actions
          • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Target point of issued order) facing Default building facing degrees
          • Unit - Remove (Last created unit) from the game
        • Else - Actions
      • Unit - Order (Triggering unit) to Night Elf Warden - Blink (Target point of issued order)


the dummys sight range is 65 both day and night, but if you rightclick on the map somewhere it creates a dummy even if its on the other side of the map.. i dont want it like that, because it appears a small circle around the point where you rightclicked, and it looks like you have explored there and its on the other side of the map..
how should i fix it?

hope this makes some sense:eek:
 

HydraRancher

Truth begins in lies
Try that:
Trigger:
  • Jump
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Jumper
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(move))
          • (Issued order) Equal to (Order(smart))
    • Actions
      • Set Temp_Point = (Position of (Triggering Unit))
      • Set Temp_Point_2 = (Target Point of issued order)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than or equal to 13.00
          • Or - Any (Conditions) are true
            • Conditions
              • ((Target point of issued order) is masked for (Owner of (Triggering unit))) Equal to True
              • ((Target point of issued order) is fogged for (Owner of (Triggering unit))) Equal to True
          • Real Distance between Temp_Point and Temp_Point_2 is Equal to or less than (=<) [Range of Blink]
        • Then - Actions
          • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Target point of issued order) facing Default building facing degrees
          • Unit - Remove (Last created unit) from the game
        • Else - Actions
      • Unit - Order (Triggering unit) to Night Elf Warden - Blink (Target point of issued order)
      • Custom Script: call RemoveLocation (udg_Temp_Point)
      • Custom Script: call RemoveLocation (udg_Temp_Point_2)
 

Wratox1

Member
Try that:
Trigger:
  • Jump
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Jumper
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(move))
          • (Issued order) Equal to (Order(smart))
    • Actions
      • Set Temp_Point = (Position of (Triggering Unit))
      • Set Temp_Point_2 = (Target Point of issued order)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than or equal to 13.00
          • Or - Any (Conditions) are true
            • Conditions
              • ((Target point of issued order) is masked for (Owner of (Triggering unit))) Equal to True
              • ((Target point of issued order) is fogged for (Owner of (Triggering unit))) Equal to True
          • Real Distance between Temp_Point and Temp_Point_2 is Equal to or less than (=<) [Range of Blink]
        • Then - Actions
          • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Target point of issued order) facing Default building facing degrees
          • Unit - Remove (Last created unit) from the game
        • Else - Actions
      • Unit - Order (Triggering unit) to Night Elf Warden - Blink (Target point of issued order)
      • Custom Script: call RemoveLocation (udg_Temp_Point)
      • Custom Script: call RemoveLocation (udg_Temp_Point_2)
thx! it worked! +rep:thup:

EDIT:How would i do if i rightclick somewhere on the map my Jumper teleports towards that point?
 

Wratox1

Member
no, because when i rightclick somewhere on the map my hero starts walking towards that point, unless its less than or equal to my skills maximum range..
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • tom_mai78101 tom_mai78101:
    You need to buy a laptop that supports external GPUs for this.
  • tom_mai78101 tom_mai78101:
    I'm pretty lucky to get myself an Alienware 15 with RTX 2070.
  • Varine Varine:
    I think I'm moving back up north for the summer, I got offered my job as the tournant chef back and I'm tired of struggling down here, it pays like twice as much too
  • Varine Varine:
    I think imma give four or five weeks of notice today to my boss, and see how much that backfires on me. I know he's struggling to hire anyone though, so it's like, do a couple weeks of interviews with me and then we'll have two or three weeks to train someone to take over for me. Hopefully he doesn't fucking let me go in like two weeks cuz that would really fuck me up right now
  • tom_mai78101 tom_mai78101:
    Wouldn't it be better if you give 3 to 4 weeks of notice? So that, at least you are guaranteed for 1 more week of paycheck to hold you over?
  • tom_mai78101 tom_mai78101:
    By the way, where are you moving to?
  • Varine Varine:
    Back to Idaho for the summer, then maybe Houston in August or so, my girlfriend or whatever we are loved it there
  • Varine Varine:
    I'm not sure yet, but my parents need some help cuz they're getting older and my mom has MS so can't do much anymore, so I'll be able to get their property fixed up so they can sell their other house. And the resort is stoked to have me back for the summer, cuz they always struggle with staff.
  • Varine Varine:
    I think it'll be alright, even if they cut me loose a bit early I do have some money and I know plenty of people that will lend me the few hundred bucks to get up there. I'm just catching up after last year still, if I have to kite some bills for a couple weeks it'll be fine.
  • Varine Varine:
    I hate my job but I do like one of my bosses, he does try really hard to get me what I need, and I want to make sure I leave with them comfortable with a new manager
  • Varine Varine:
    I like my coworkers for the most part too as much as I bitch about them, they just aren't reliable. As kids tend to be, I was a shithead at 19 and 20 too I'm sure, so
  • tom_mai78101 tom_mai78101:
    Good luck on getting things going.
  • Varine Varine:
    Eh, it'll be fine, I got it mostly planned out already. Roommates know, boss will know in about an hour when I go to work, I'll have a plane booked once we decide my last day, and I have a place to stay up there lined up for two or three months
  • Varine Varine:
    That all came together surprisingly easily
  • Varine Varine:
    I think I'm going to give 4 weeks, so that'll give me 2 more full checks probably, and then one more coming after I leave.
    +1
  • Varine Varine:
    All that shit came together really well suprisingly. My boss was upset cuz I am really good at my job suprisingly, but he's stoked that he got 4 weeks, plus one or two if he needs it, my flight's book in mid June, but I start my new job almost immediately so it'll be nice to have some time to chill and pack and get my rooms cleaned out. He actually gave me a dollar raise right after I gave notice to thank me for not being short or just leaving and making sure I can help interview and train someone to replace me. He is really cool, his food truck has just been a nightmare to run. I get my vaccine next week finally, allegedly Idaho will let me have my license back when I get there, and I have all my bills up to date so it should be an easy move this time around.
  • Varine Varine:
    Is anyone else getting server timeouts in the chat? I think it's on my end, my wifi adapter has been acting up recently
  • Varine Varine:
    100% my end, idk what it is though.
  • tom_mai78101 tom_mai78101:
    Just woke up. No idea.
  • jonas jonas:
    sounds great :) have fun in Idaho
  • The Helper The Helper:
    freaking Idaho
  • Varine Varine:
    Yeah it sucks up there, but it'll be a bit easier for the summer probably.
  • The Helper The Helper:
    When you get to Houston you will have your pick there is a huge shortage of good people to work in your field here. They are hiring everywhere and Texas is pretty much fully open.
  • The Helper The Helper:
    for anyone else following this yes I am in Houston so Varine and I will RL meet gotta love it! Looking forward to it!
  • jonas jonas:
    awesome

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome
    Top