Wisp Wheel

Sevion

The DIY Ninja
Reaction score
413
I need a wisp wheel trigger for my and my friend's latest map, Maze of Dreams, any1 wanna help? I've looked over a few other triggers but whenever i tried the Wisps just stuck to the mid point or disappeared. It would help a lot :D.
 

Tom Jones

N/A
Reaction score
437
I can make one in jass if you know how to modify jass. I aint making one in GUI it's too complicated.
 
Z

Zell

Guest
What's a wisp wheel? Granted that JASS might be easier for this, I'd still like to give it a try (I love tackling coding issues, it's the problem-solving that does it for me =P)
 
D

dadads

Guest
So, sometimes in WC3 maze-genre maps, u may encounter obstacles that move in a certain path around the maze (and the objective is to dodge that obstacle).

Wisp wheel is one of those obstacles where there are a couple of balls/wisps going round a circular path and you have to dodge it.
 

Sevion

The DIY Ninja
Reaction score
413
Okay, i got a trigger to work for the wisp wheel but i need the degree's for a perfect X this is what i have so far:
Code:
Wisp Wheel 1
    Events
        Time - Every 0.05 seconds of game time
    Conditions
    Actions
        Set Point = ((Position of Wisp 0031 <gen>) offset by 256.00 towards WispSpin degrees)
        Unit - Move Wisp 0030 <gen> instantly to Point
        Set Point = ((Position of Wisp 0031 <gen>) offset by 512.00 towards WispSpin degrees)
        Unit - Move Wisp 0029 <gen> instantly to Point
        Set Point = ((Position of Wisp 0031 <gen>) offset by 256.00 towards (WispSpin - 258.00) degrees)
        Unit - Move Wisp 0036 <gen> instantly to Point
        Set Point = ((Position of Wisp 0031 <gen>) offset by 512.00 towards (WispSpin - 258.00) degrees)
        Unit - Move Wisp 0037 <gen> instantly to Point
        Set Point = ((Position of Wisp 0031 <gen>) offset by 256.00 towards (WispSpin - 506.00) degrees)
        Unit - Move Wisp 0034 <gen> instantly to Point
        Set Point = ((Position of Wisp 0031 <gen>) offset by 512.00 towards (WispSpin - 516.00) degrees)
        Unit - Move Wisp 0035 <gen> instantly to Point
        Set Point = ((Position of Wisp 0031 <gen>) offset by 256.00 towards (WispSpin - 754.00) degrees)
        Unit - Move Wisp 0032 <gen> instantly to Point
        Set Point = ((Position of Wisp 0031 <gen>) offset by 512.00 towards (WispSpin - 754.00) degrees)
        Unit - Move Wisp 0033 <gen> instantly to Point
        Custom script:   call RemoveLocation(udg_Point)
        Set WispSpin = (WispSpin - 5.00)
any ideas on what to do with the angle degrees? it just keeps getting distorted into like an awkward X. :confused: ive tried 256, 512, and 768, 260, 520, and 780 and a few other angles but it just keeps on getting messed up any suggestions??

i want it to be like this:

-------o
-------o
---o o X o o
-------o
-------o

where the "o"'s rotate around the "X"
 

Tonks

New Member
Reaction score
160
Just for your information, Maze of Dreams has already been taken. You may not want to name it the same as another maze.
 
M

Mythic Fr0st

Guest
Wisp Wheel in GUI is simple, not complicated

Variables:

Wisp_Unit, unit, array 1 (you must set each wisp you want to spin in this array)
Wisp_Angle, real, array 1
Wisp_Offset, integer, array 1
Wisp_Orbit, Location, no array
Wisps_To_Spin, integer, no array
Wisp_Loc, Location, array 1
Code:
    Events
        Map initilization
    Conditions
    Actions
        Set Wisp_Unit[0] = "Wisp 1"
        Set Wisp_Angle[0] = Facing of Wisp 1
        Set Wisp_Offset[0] = "100"
        Set Wisp_Unit[1] = "Wisp 2"
        Set Wisp_Angle[1] = Facing Of Wisp 2
        Set Wisp_Offset[1] = "200"
        Set Wisp_Unit[2]  = "Wisp 3"
        Set Wisp_Angle[2] = Facing Of Wisp 3
        Set Wisp_Offset[2] = "300"
        Set Wisps_To_Spin = 3

Any units in the Wisp_Unit array, will spin, set Offset to the same, so they spin next to each other, or set the angle to the same, so they're in a row, anyway gl

Code:
    Events
        Time - Every 0.07 Seconds
    Conditions
    Actions
        Set Wisp_Orbit = (Center of a region, or positon of unit to spin around)
        For each Integer A from 1 to Wisps_To_Spin do MULTIPLE Actions
            Loop - Actions
                Set Wisp_Loc[0] = Wisp_Orbit offset by Wisp_Offset[Integer A] towards Wisp_Angle[Integer A]
                Unit - Move instantly Wisp_Unit[Integer A] to Wisp_Loc[0]
                Set Angle[Integer A] = Angle[Integer A] + 1
                Custom script:   call RemoveLocation(udg_Wisp_Loc[0])
        Custom script:   call RemoveLocation(udg_Wisp_Orbit)
 

Tonks

New Member
Reaction score
160
Code:
    Events
        Map initilization
    Conditions
    Actions
        Set Wisp_Unit[0] = "Wisp 1"
        Set Wisp_Angle[0] = Facing of Wisp 1
        Set Wisp_Offset[0] = "100"
        Set Wisp_Unit[1] = "Wisp 2"
        Set Wisp_Angle[1] = Facing Of Wisp 2
        Set Wisp_Offset[1] = "200"
        Set Wisp_Unit[2]  = "Wisp 3"
        Set Wisp_Angle[2] = Facing Of Wisp 3
        Set Wisp_Offset[2] = "300"
        Set Wisps_To_Spin = 3

An easier way to do that trigger would be to use an Integer Variable, in this case "i."

Code:
Set Wisp_Unit[i] = "Wisp 1"
        Set Wisp_Angle[i] = Facing of Wisp 1
        Set Wisp_Offset[i] = "100"
        Set i = (i (+ 1))
        Set Wisp_Unit[i] = "Wisp 2"
        Set Wisp_Angle[i] = Facing Of Wisp 2
        Set Wisp_Offset[i] = "200"
        Set i = (i (+ 1)
        Set Wisp_Unit[i]  = "Wisp 3"
        Set Wisp_Angle[i] = Facing Of Wisp 3
        Set Wisp_Offset[i] = "300"

That way, "i" would equal the number, without you actually having to fill it in. Just a quicker way, especially if you have a lot of variable arrays to set.
 

elmstfreddie

The Finglonger
Reaction score
203
Why would it matter what the name of the variable is, in my mind it's easier with longer names so you know wtf i is.
 

Sevion

The DIY Ninja
Reaction score
413
Just for your information, Maze of Dreams has already been taken. You may not want to name it the same as another maze.

it has? well then i'll just call it........ Maze of Snow #2, Maze of Snow isnt taken right? cause i already made and released Maze of Snow #1 without making sure if its name was free for the taking let me know and i'll change them.
 

Sevion

The DIY Ninja
Reaction score
413
Mythic i think your trigger is a bit off when i try to do:

Code:
Set Wisp_Loc[0] = Wisp_Orbit offset by Wisp_Offset[Integer A] towards Wisp_Angle[Integer A]

it doesnt have Wisp_Offset
 
M

Mythic Fr0st

Guest
it doesnt have Wisp_Offset
Wth, Wisp_offset[] is set here
and its Wisp_offset[Integer A]

Code:
    Events
        Map initilization
    Conditions
    Actions
        Set Wisp_Unit[0] = "Wisp 1"
        Set Wisp_Angle[0] = Facing of Wisp 1
        Set Wisp_Offset[0] = "100"
        Set Wisp_Unit[1] = "Wisp 2"
        Set Wisp_Angle[1] = Facing Of Wisp 2
        Set Wisp_Offset[1] = "200"
        Set Wisp_Unit[2]  = "Wisp 3"
        Set Wisp_Angle[2] = Facing Of Wisp 3
        Set Wisp_Offset[2] = "300"
        Set Wisps_To_Spin = 3
 

Sevion

The DIY Ninja
Reaction score
413
Wth, Wisp_offset[] is set here
and its Wisp_offset[Integer A]

Code:
    Events
        Map initilization
    Conditions
    Actions
        Set Wisp_Unit[0] = "Wisp 1"
        Set Wisp_Angle[0] = Facing of Wisp 1
        Set Wisp_Offset[0] = "100"
        Set Wisp_Unit[1] = "Wisp 2"
        Set Wisp_Angle[1] = Facing Of Wisp 2
        Set Wisp_Offset[1] = "200"
        Set Wisp_Unit[2]  = "Wisp 3"
        Set Wisp_Angle[2] = Facing Of Wisp 3
        Set Wisp_Offset[2] = "300"
        Set Wisps_To_Spin = 3

Wisp_Offset[Integer A] yeah thats what i meant, when i check the variables it shows (for the part that is "... offset by....") real variables only and Wisp_Offset[Integer A] is an Integer, Array :confused:
 
M

Mythic Fr0st

Guest
Yes, I never include in my codes the conversion but

it requires to convert to real


"Convert Integer To Real"

its an option when selecting a real value, you can scroll down and find "Convert String to Real, etc.."

Select integer...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • 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

      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