• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Problem with instances

Status
Not open for further replies.
Hey. So i've created this spell few moments ago, and it seems that there's a problem with the instances, but i can't figure out what causes the bug.
Problem

When i cast the spell, first time, everything works like it should, but when i cast he spell second time while the first is still on, the first effect disappears and makes the second effect to got twice faster!
Now when i cast spell sometimes it appears at the center of the map - somewhere it leaks=)
So i hope you will help me! You will be rewarded with rep and credits!
Edit: Solved
 
Last edited:
The way you use FSReals and FSPoints makes it not MUI.

This block:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • FS_CurrentDistance[FS_Index3] Greater than or equal to FS_Distance[FS_Index3]
    • Then - Actions
      • Set FS_Real1 = 0.00
      • -------- ----------------------------------------------- --------
      • -------- Setting point --------
      • -------- ----------------------------------------------- --------
      • Set FS_Point6 = (Position of FS_Dummy[FS_Index3])
    • Else - Actions
This, not MUI
  • Set FS_Real1 = (FS_Real1 + FS_Speed2)
This, point 6 is not set correctly
  • Unit Group - Pick every unit in (Units within FS_AoE[FS_Index3] of FS_Point6 matching ((((Matching unit) is A structure)...
and so on.

You must set Point6 and FS_Real1 correctly in the THEN branch.
 
Yeah, i knew that the problem is with those variables, but i made 'em all with arrays before and that didn't work... Okay i'll try it again. I'll edit the post to tell if all worked out fine!
Edit: worked, thanks a lot man!!!
Edit2: crap! I'm getting stupid! I guess my had is just overloaded with something else, the problem is that it still doesn't work, well it does, but there's some leak, that i can't figure out - when cast multiple times some times the effect appears at the center of the map! First post edited with new test map!
Edit3: nvm, what i said above, solved!
 
Last edited:
Status
Not open for further replies.
Back
Top