Wisp Wheel

Do you need World Editor help? Ask here!
Forum rules
Before making a new topic:
First, check if your question has already been answered in the Tutorials section.
If you didn't find a solution, use the search function.
If searching didn't help either, you can make a new topic.

Topic title & content:
You must use a descriptive title. (Help plz is not good) (Need help with Dialog buttons is good)
Go into much detail when posting. You should post attachments. Like screenshots of the problem, the map you are making, replays of the error. Or you could even make a screencast (video) of your problem and upload it here.

Spelling:
Grammar seems to be a serious problem amongst teenagers, so use a spell checker or you will get no love.
Read your posts twice, before pressing the reply button.
And do not use profanity. Chatspeak (y r u nub) and Leetspeak (1 C4N S33 H4X) are not welcome here either.

Only World Editor related questions are allowed here!
(Click for Battle.net help) (Click for World Editor help)
User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Wisp Wheel

Unread post by 3ICE »

shinning_faith wrote:slightly edited
You mean completely ruined and unusable. :P
ImageImageImageImageImage
Image
ImageImage

User avatar
SHiNNiNG_FaiTH
Posts: 264
Joined: Fri Mar 21, 2008 1:57 am
Realm: US East
Account: SHiNNiNG_FaiTH
Clan: 3ICE
Location: Minnesota, USA
Contact:

Re: Wisp Wheel

Unread post by SHiNNiNG_FaiTH »

3ICE wrote:
shinning_faith wrote:slightly edited
You mean completely ruined and unusable. :P
roflmfao fuck you
the only diffrence is less variables(slightly more "memory leaks") aka - complexity
APM Spamming mineral fields is fun!
Image

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Wisp Wheel

Unread post by 3ICE »

Yeah, because 180° spins every 0.03 seconds is going to look good in a game...

Here is the original tutorial: http://forum.3ice.hu/viewtopic.php?p=2917#p2917
ImageImageImageImageImage
Image
ImageImage

User avatar
SHiNNiNG_FaiTH
Posts: 264
Joined: Fri Mar 21, 2008 1:57 am
Realm: US East
Account: SHiNNiNG_FaiTH
Clan: 3ICE
Location: Minnesota, USA
Contact:

Re: Wisp Wheel

Unread post by SHiNNiNG_FaiTH »

3ICE wrote:Yeah, because 180° spins every 0.03 seconds is going to look good in a game...
that was convenient for what i was doing in my map easily editing something such as a wisp wheel shouldn't be so difficult
APM Spamming mineral fields is fun!
Image

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Wisp Wheel

Unread post by 3ICE »

shinning_faith wrote:shouldn't be so difficult
It is difficult. Code written by someone else can be extremely confusing.
ImageImageImageImageImage
Image
ImageImage

User avatar
EqualiseR
Posts: 177
Joined: Mon Mar 21, 2011 2:38 pm
Realm: US East
Account: EqualiseR
Clan: 3ICE

Re: Wisp Wheel

Unread post by EqualiseR »

Bump.

Oh wait I see you guys beat me to the bumping of this year 2 year old thread!

P.S. - Fourth! Oh wait...Fourth is like coming in last place.

:(
Image

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Wisp Wheel

Unread post by 3ICE »

3ICE wrote:Definition of Whisp wheel by 3ICE: Common obstacles in maze-type maps. Units (usually wisps due to their simple shape) moving in a circle around a point (or another unit).
Wisp Spinning tutorial by 3ICE.w3m
3ICE's Simple Spin System.w3m
Warning!
These maps are very old. I had no knowledge of memory leaks or even JASS back then. Any copied triggers should be updated to handle memory leaks properly.
Oh how cocky I was back then...

Code: Select all

//===========================================================================
// Trigger: Spin Wisps Linear Direction Changed
//
// Notice: memory leaks r not a big deal, only a 100 is created each second.
//===========================================================================
Edit: Might as well add this comment, also:

Code: Select all

//===========================================================================
// Trigger: Make Wisps Circular Patrol
//
// Method of counting the angle:
// Divide 360 by the number of wisps you have lets call the result: X
// first wisp always 0
// second wisp X
// third wisp 2X
// fourth wisp 3X
// fifth wisp 4X
// and so on and forth
// (in my case X was 72)
//===========================================================================
ImageImageImageImageImage
Image
ImageImage

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Wisp Wheel

Unread post by 3ICE »

Here's some bonus text, as extracted from the map.

C:\Users\Daniel3ICE\Documents\Warcraft III\Maps\!\No\Spinning\Wisp Spinning tutorial by 3ICE.w3m\war3map.wts:

STRING 1: Hello and welcome to the Wisp spinning tutorial created by 3ICE!

Simply copy and paste the triggers you find in this map and change parts of it when needed.

Don't forget to |cffff0000CREDIT ME!
STRING 2: Wisp Spinning Tutorial map by 3ICE
STRING 3: 3ICE
STRING 4: Credit 3ICE if you use this!
STRING 7: Author: 3ICE |cffff0000CREDIT ME!
STRING 8: Don't forget to give credit to 3ICE
This map is a tutorial covering :
Spinning wisps linear
Spinning wisps circular
Making them go faster/slower
Making them change direction (of spinning)
Zooming in and out the spinning (hard2 explain so just look on the map)
Spin around a patrolling unit (both circular and linear) And many more!
E-mail: |cff0000ff-REDACTED-|r if you want my expert triggers because these are just the basics! Have fun!
STRING 11: Overview
STRING 12: Linear Spin
STRING 13: Circular Spin
STRING 14: Circular Spin with Zoom (in/out)
STRING 15: Linear Spin with changing Speed (fast/slow)
STRING 16: Circular Spin with alternating direction
STRING 17: Linear Spin with alternating direction
STRING 18: Circular Spin around a patrolling unit
STRING 19: Linear Spin around a patrolling unit
STRING 24: Now alt+qq or look around do whatever you want and |cffff0000 CREDIT ME!
(press Page Up to zoom in)
STRING 26: This map is a tutorial
STRING 27: Created by 3ICE
STRING 28: |cffff00ffCheck the Quests (F9) for more info.
STRING 30: Method of counting the angle for circular spins:
Divide 360 by the number of wisps you have lets call the result: X
first wisp always 0
second wisp X
third wisp 2X
fourth wisp 3X
fifth wisp 4X
and so on and forth
(in my case X was 72)
STRING 31: My e-mail
STRING 32: -REDACTED-
send a mail there if you want the expert triggers too
(check the other quests for the types of spins available)
I'm an expert triggerer. visit my site for tutorials and a great community: |cff3377333ice.hu
|cff773377Im 3ICE and I play in Azeroth. I'm chief of the biggest mazer clan in Azeroth: Clan mFH
STRING 33: Spins
STRING 34: rectangular spin, oval spin, morphing spin, shapeshifting spin, flashing spin, passing spin, shifting spin, alternating spin, flying spin with altered heights and kill/no kill
STRING 36: 3D spin, globe spin, universe model spin, i-spin, random spin, jump spin, drawing spin, half loop spin, scan spin, exploding spin, spiral spin, deadly spiral spin
STRING 38: and combinations of the above, any combinations of the presented spins, you can also request a custom spin, because i can make anything what is possible
STRING 49: |cffff00ffCheck the Quests (F9) for more info.
STRING 56: Linear spin with alternating speed
STRING 60: (this text is attached to the Paladin)
ImageImageImageImageImage
Image
ImageImage

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Wisp Wheel

Unread post by 3ICE »

Finally, here's the simpler tutorial map's code (extract):
Trigger: Setup Spin by 3ICE
// Okay here's the deal! You set the stuff up in this trigger, and the second trigger will do the spin for you.
// CREDITS: Give full credit to 3ICE! also put my name on the loading screen if you use this. [DONT STEAL!]
// My Contact: -REDACTED-
// FAQ: Why do i see 3ICE in all variables? - Its a copy protection just incase you would want to steal...

Code: Select all

function Trig_Setup_Spin_by_3ICE_Actions takes nothing returns nothing
    // Before you start please Set the collision of the units to ZERO! Otherwise this system will not work properly. (in case distance is less than 70)
    // Change the No Unit to the unit you want to be the center unit. YOU CAN USE ANYTHING EVEN BUILDINGS (but careful)
    set udg_Setup_Spin_Around_me_3ICE = null
    // Change the No Units to the units you want to be spinned around the center unit. YOU CAN USE ANYTHING EVEN BUILDINGS (but careful)
    set udg_Setup_Spin_me1_3ICE = null
    set udg_Setup_Spin_me2_3ICE = null
    // Change the 0 to the value you want to be the distance between the central unit and the spinning units (recommended: 50-300)
    set udg_Setup_Distance_3ICE = 0.00
    // Change the 0 to the value you want to be the speed of the spinning units (recommended: 5-10)
    set udg_Setup_Speed_3ICE = 0.00
    // Change the 0s to the angles you want the spin to start at (recommended 90 and 270)
    set udg_A_3ICE = 90.00
    set udg_B_3ICE = 270.00
    // Additional note: You can (SHOULD!) patrol the center unit, the spin will still go around it.
    // Change the (Center of (Playable map area)) to any region you want the center unit to patrol to.
    call IssuePointOrderLocBJ( udg_Setup_Spin_Around_me_3ICE, "patrol", GetRectCenter(GetPlayableMapRect()) )
    // This one is only needed for Variable Autocreation, so Don't mind it!
    set udg_P_3ICE = GetRectCenter(GetPlayableMapRect())
endfunction
And the core:
Trigger: Spin by 3ICE
// DONT STEAL! GIVE CREDIT TO 3ICE IF YOU USE THIS!
// This script is a very powerful spinning system, its newb friendly and takes everything from a setup trigger what is in GUI.
// Please credit 3ICE if you use this!

Code: Select all

function Trig_Spin_by_3ICE_Actions takes nothing returns nothing
set udg_P_3ICE = GetUnitLoc(udg_Setup_Spin_Around_me_3ICE)
set udg_A_3ICE = ( udg_A_3ICE + udg_Setup_Speed_3ICE )
set udg_B_3ICE = ( udg_B_3ICE + udg_Setup_Speed_3ICE )
call SetUnitPositionLoc( udg_Setup_Spin_me1_3ICE, PolarProjectionBJ(udg_P_3ICE, udg_Setup_Distance_3ICE, udg_A_3ICE) )
call SetUnitPositionLoc( udg_Setup_Spin_me2_3ICE, PolarProjectionBJ(udg_P_3ICE, udg_Setup_Distance_3ICE, udg_B_3ICE) )
call RemoveLocation(udg_P_3ICE)
endfunction
function InitTrig_Spin_by_3ICE takes nothing returns nothing
set gg_trg_Spin_by_3ICE = CreateTrigger(  )
call TriggerRegisterTimerEventPeriodic( gg_trg_Spin_by_3ICE, 0.05 )
call TriggerAddAction( gg_trg_Spin_by_3ICE, function Trig_Spin_by_3ICE_Actions )
endfunction
And the demo map:
Trigger: Init show off

Code: Select all

function Trig_Init_show_off_Actions takes nothing returns nothing
    // YOU DON'T NEED THIS FOR YOUR MAP!
    set udg_Setup_Spin_Around_me_3ICE = gg_unit_odoc_0012
    set udg_Setup_Spin_me1_3ICE = gg_unit_ewsp_0013
    set udg_Setup_Spin_me2_3ICE = gg_unit_earc_0014
    set udg_Setup_Distance_3ICE = 150.00
    set udg_Setup_Speed_3ICE = 7.00
    call IssuePointOrderLocBJ( udg_Setup_Spin_Around_me_3ICE, "patrol", GetRectCenter(gg_rct_Credit_3ICE) )
    // YOU DON'T NEED THIS FOR YOUR MAP!
    call FogEnableOff(  )
    call FogMaskEnableOff(  )
    call DisplayTimedTextToForce( GetPlayersAll(), 333.33, "TRIGSTR_001" )
    // YOU DON'T NEED THIS FOR YOUR MAP!
endfunction
And the wts:

Code: Select all

STRING 1: |cff00ff00Map created by 3ICE
|cffff0000Give me credit!
STRING 2: 3ICE's Simple Spinning System
STRING 4: HF |cffff0000And credit me!
STRING 6: 3ICE Presents:
STRING 7: Simple Spin System
STRING 8: Copy the triggers into your map and credit me
|cffff0000Credit 3ICE
STRING 21: Map by 3ICE                     
STRING 22: Observers                       
STRING 25// Units: earc (Frost), Name (Name): Frost
STRING 26// Units: ewsp (Poison), Name (Name): Poison
ImageImageImageImageImage
Image
ImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests