Leap spells :D!

n1mr0d

Member
Reaction score
1
Ok so , i was searching here on the site some spells , which are changing an unit's position and his height and weight over a time, or until it goes to the targeted point or unit. But i didn't find any. (maybe there were, and i missed). So i wanna make 1 spell , which will target a unit , and the targeted unit will be moved to the distance beetween target and triggering unit, (angle beetween target and triggering unit)x(-1) degrees. But i'm pretty confused, when i run the trigger with the event of every 0.03 seconds of the game-time, what should i do xD? i save the location of the targeted unit , and the 2nd location of targeted unit where he will go after .03 , but to change his height and weight :D ? some tips , and maybe some tutorials :D ?
 
you have to change it yourself with actions, but it cant be changed until crow form has been added
 
to change the fly height you just have to give and take off the crowform ability
add crow form to "unit"
remove crow form from "unit"

that's it XD
 
just add the AutoFly system from azlier, is in jass, but you don't have to do anything rather than a simple c/p.
then you can set their flyheight without adding removing crow form.
 
you have to change it yourself with actions, but it cant be changed until crow form has been added
yes but , how can i manage that the height/weight of the targeted unit to be 0 , after 10 seconds 100 and after 10 seconds again 0?
 
create a variable to take the currect flying height of unit, and every trigger run, you add a value to this variable and change the fly height to that variable

JASS:

set HeightVariable = HeightVariable + "the integer value of change"  
call SetUnitFlyHeight( "you unit", HeightVariable, 1600.00 ) // i  recomend this fly rate to change the fly height instantaly
 
create a variable to take the currect flying height of unit, and every trigger run, you add a value to this variable and change the fly height to that variable

JASS:

set HeightVariable = HeightVariable + "the integer value of change"  
call SetUnitFlyHeight( "you unit", HeightVariable, 1600.00 ) // i  recomend this fly rate to change the fly height instantaly

can you make it in gui ?
 
on init trigger
Code:
set HeightUnit = (Currect Flying height of UnitVariable)
in the knockback trigger (the trigger thats runs every 0.03 seconds)

Code:
set HeightUnit = HeightUnit + 10.00  //ex.
Animation - Change UnitVariable flying height to HeightUnit at 1600.00
 
on init trigger
Code:
set HeightUnit = (Currect Flying height of UnitVariable)
in the knockback trigger (the trigger thats runs every 0.03 seconds)

Code:
set HeightUnit = HeightUnit + 10.00  //ex.
Animation - Change UnitVariable flying height to HeightUnit at 1600.00

okay , and let's say , the trigger will run over 2 seconds, so the heightunit will be near 666.66 , and make his animation to that, but to change it back , to current flying height ?how ?(and it can be done in the same Loop trigger?)
 
good work at remember,

in a sample jump, you will cut the jump in two parts

---------------------|---------------------
in the knockback trigger, you will think how many will be the distance the unit will knock, just taking the time and the range per trigger you will have the value, and put this value in a variable in the init trigger

in the knock trigger, put 2 ifs, one inside the other:

Code:
if
C>CheckBoo equal true
A>if 
----C>(MaxHeightVariable/2) lass then or equal to HeightUnit 
----Then A>set Check = false
----Then A>set HeightUnit = HeightUnit - 10.00 //ex.
----Else A>set HeightUnit = HeightUnit + 10.00//ex.
Else A>set HeightUnit = HeightUnit - 10.00

set HeightUnit = HeightUnit + 10.00  //ex.
Animation - Change UnitVariable flying height to HeightUnit at 1600.00

i think is it
OBS: all code posted by me are non-mui
 
good work at remember,

in a sample jump, you will cut the jump in two parts

---------------------|---------------------
in the knockback trigger, you will think how many will be the distance the unit will knock, just taking the time and the range per trigger you will have the value, and put this value in a variable in the init trigger

in the knock trigger, put 2 ifs, one inside the other:

Code:
if
C>CheckBoo equal true
A>if 
----C>(MaxHeightVariable/2) lass then or equal to HeightUnit 
----Then A>set Check = false
----Then A>set HeightUnit = HeightUnit - 10.00 //ex.
----Else A>set HeightUnit = HeightUnit + 10.00//ex.
Else A>set HeightUnit = HeightUnit - 10.00

set HeightUnit = HeightUnit + 10.00  //ex.
Animation - Change UnitVariable flying height to HeightUnit at 1600.00

i think is it
OBS: all code posted by me are non-mui

i know it :p, so by A, C and CheckBoo what you mean ? and what result have MaxHeightVariable?
 
A = actions
C = conditions
CheckBoo is a boolean variable
sorry to write as that way, i think that way the better
 
this variable is to hold the max height fly, so, you choose what is the max height
i recomend 400
 
ok here is my trigger, and i think i miss understood you. just check it where it changes the units animation.
Trigger:
  • Magical Nest Effect
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Magical_Nest_UnitGroup and do (Actions)
        • Loop - Actions
          • Set Magical_Nest_Unit = (Picked unit)
          • Unit - Turn collision for Magical_Nest_Unit Off
          • Set TempKey = (Key (Picked unit))
          • Set Magical_Nest_Special_Effect = (Load 1 of TempKey in Magical_Hashtable)
          • Set Magical_Nest_Range_Beetween = (Load 2 of TempKey from Magical_Hashtable)
          • Set Magical_Nest_Angle = (Load 3 of TempKey from Magical_Hashtable)
          • Set Magical_Nest_Lighting = (Load 4 of TempKey in Magical_Hashtable)
          • Set Magical_Nest_Speed = (Load 5 of TempKey from Magical_Hashtable)
          • Set Magical_Nest_Caster_Unit = (Load 6 of TempKey in Magical_Hashtable)
          • Set Magical_Nest_Caster_Point = (Position of Magical_Nest_Caster_Unit)
          • Set Magical_Nest_Level = (Load 7 of TempKey from Magical_Hashtable)
          • Set Magical_Nest_UnitHeight = (Load 8 of TempKey from Magical_Hashtable)
          • Set Magical_Nest_Boolean = (Load 9 of TempKey from Magical_Hashtable)
          • Set Magical_Nest_MaxHeight = (Load 10 of TempKey from Magical_Hashtable)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Magical_Nest_Range_Beetween Greater than 0.00
            • Then - Actions
              • Unit - Make Magical_Nest_Caster_Unit face Magical_Nest_Unit over 0.01 seconds
              • Set TempPoint1 = (Position of Magical_Nest_Unit)
              • Set TempPoint2 = (TempPoint1 offset by (Magical_Nest_Speed x 0.03) towards Magical_Nest_Angle degrees)
              • Lightning - Move Magical_Nest_Lighting to source Magical_Nest_Caster_Point and target TempPoint2
              • Unit - Move Magical_Nest_Unit instantly to TempPoint2
              • Hashtable - Save (Magical_Nest_Range_Beetween + (Magical_Nest_Speed x 0.03)) as 2 of TempKey in Magical_Hashtable
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Magical_Nest_Boolean Equal to True
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Magical_Nest_MaxHeight / 2.00) Less than or equal to Magical_Nest_UnitHeight
                    • Then - Actions
                      • Set Magical_Nest_Boolean = False
                      • Set Magical_Nest_UnitHeight = (Magical_Nest_UnitHeight - 10.00)
                    • Else - Actions
                      • Set Magical_Nest_UnitHeight = (Magical_Nest_UnitHeight + 10.00)
                • Else - Actions
                  • Set Magical_Nest_UnitHeight = (Magical_Nest_UnitHeight - 10.00)
              • Animation - Change Magical_Nest_Unit flying height to Magical_Nest_UnitHeight at 1600.00
              • Hashtable - Save Magical_Nest_UnitHeight as 8 of TempKey in Magical_Hashtable
              • Custom script: call RemoveLocation(udg_TempPoint1)
              • Custom script: call RemoveLocation(udg_TempPoint2)
            • Else - Actions
              • Set TempPoint1 = (Position of Magical_Nest_Unit)
              • Special Effect - Destroy Magical_Nest_Special_Effect
              • Unit - Unpause Magical_Nest_Caster_Unit
              • Unit - Unpause Magical_Nest_Unit
              • Lightning - Destroy Magical_Nest_Lighting
              • Custom script: set bj_wantDestroyGroup = true
              • Destructible - Pick every destructible within 250.00 of TempPoint1 and do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Current life of (Picked destructible)) Greater than or equal to 0.00
                    • Then - Actions
                      • Unit - Order Harvest to Harvest (Picked destructible)
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Current order of Harvest) Equal to (Order(harvest))
                        • Then - Actions
                          • Destructible - Kill (Picked destructible)
                        • Else - Actions
                          • Unit - Order Harvest to Stop
                    • Else - Actions
              • Unit Group - Pick every unit in (Units within 250.00 of TempPoint1) and do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • ((Picked unit) is A structure) Equal to False
                      • ((Picked unit) belongs to an enemy of (Owner of Magical_Nest_Caster_Unit)) Equal to True
                      • ((Picked unit) is alive) Equal to True
                      • Magical_Nest_Unit Not equal to (Picked unit)
                    • Then - Actions
                      • Set TempPoint2 = (Position of (Picked unit))
                      • Unit - Create 1 Damage And Stun for (Owner of Magical_Nest_Caster_Unit) at TempPoint2 facing Default building facing degrees
                      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
                      • Unit - Set level of Magical Nest Stun for (Last created unit) to Magical_Nest_Level
                      • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
                      • Custom script: call RemoveLocation(udg_TempPoint2)
                    • Else - Actions
              • Special Effect - Create a special effect at TempPoint1 using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
              • Unit Group - Remove Magical_Nest_Unit from Magical_Nest_UnitGroup
              • Unit - Turn collision for Magical_Nest_Unit On
              • Custom script: call RemoveLocation(udg_TempPoint1)
              • Custom script: call RemoveLocation(udg_Magical_Nest_Caster_Point)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Magical_Nest_UnitGroup is empty) Equal to True
                • Then - Actions
                  • Trigger - Turn off Magical Nest Effect <gen>
                • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top