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.

      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