Back Sliding Spell [Help please =D]

Mike889

New Member
Reaction score
15
Hello everyone!!!! Long time i don't post here, xD
Well, i am making a spell named Back Sliding. It makes ur unit move back and so quickly fleeing the battle field. My spells is fully working however... when you use it you can pass trough tress, walls, and worse... doors.
So i want to know if there's some way to make it impossible to transpass objects while you are backsliding. But the backslider shoul still look forwards, like if its moonwalk! xD

Here's my currently trigger:
Code:
BackSliding
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Back Sliding 
    Actions
        Set BackSli_Point = ((Position of (Triggering unit)) offset by -450.00 towards (Facing of (Triggering unit)) degrees)
        Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
        Special Effect - Destroy (Last created special effect)
        Wait 0.07 seconds
        Unit - Move (Triggering unit) instantly to BackSli_Point
        Selection - Select (Triggering unit) for (Owner of (Triggering unit))
        Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Triggering unit)) over 0.50 seconds
        Custom script:   call RemoveLocation (udg_BackSli_Point)

I think it's also leakless, right?

More one thing: My skill is also ignoring the cooldown. On level 1 there's 35 secs cooldown and at level 4 3 secs cooldown. How to implement this?
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
tried adding a minor wait before the "move unit instantly" part? For the cooldown issue that is.
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
I ain't got no sollution for the teleporting part, though I'll follow this thread since I'll probably have the exact same problem making the Back sliding spell for the Thief in my Ragnarok Online RPG.
 

Mike889

New Member
Reaction score
15
I ain't got no sollution for the teleporting part, though I'll follow this thread since I'll probably have the exact same problem making the Back sliding spell for the Thief in my Ragnarok Online RPG.
xD Aha, i've got this spell from Ragnarok, xD Ah, good times playing it.
Well...
Hey, do you know how to make an skill disappear from the skill icons windows? I've made an skill that when learnt add another skill to your hero.
I.e: If you learn the skill at lvl 1 you learn Shadow Meld instead.
Learning the skill at lvl 2 adds Evasion.
But the uneeded skill remains on the screen, and so my ultimate dosn't appear =/
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
Make a learn spell based of "Channel", and check the Channel options so that it's not visible (I think it's not visible by default). Then you make a trigger something like

Events
A unit learns a skill

Conditions
Learn hero skill Equal to <Your learn skill>

Actions
If all conditions are true then do (then actions) else do (else actions)
If - Conditions
Level of <your learn skill> Equal to 1

Then - actions
Add Shadow Meld to triggering unit

Else - actions
If all conditions are true then do (then actions) else do (else actions)
If - Conditions
Level of <your learn skill> Equal to 2

Then -actions
Remove Shadow Meld from triggering unit
Add Evasion to triggering unit

Else - Actions
Do nothing
 

Mike889

New Member
Reaction score
15
Make a learn spell based of "Channel", and check the Channel options so that it's not visible (I think it's not visible by default). Then you make a trigger something like

Events
A unit learns a skill

Conditions
Learn hero skill Equal to <Your learn skill>

Actions
If all conditions are true then do (then actions) else do (else actions)
If - Conditions
Level of <your learn skill> Equal to 1

Then - actions
Add Shadow Meld to triggering unit

Else - actions
If all conditions are true then do (then actions) else do (else actions)
If - Conditions
Level of <your learn skill> Equal to 2

Then -actions
Remove Shadow Meld from triggering unit
Add Evasion to triggering unit

Else - Actions
Do nothing
Hmm.. Well, it still dosn't works =/ But i think i have a solution for this. I need only to remove the Patrol command. Is it possible?




--------

Here are my triggers. Hiding Mastery has 4 levels, each level add a new skill. Only Fire Feet dosn't appear, as it is supposed to. And from the skills that should appear (hide(shadow meld) and cloacking), only shadow meld appears. I can remove evasion later because hiding mastery is based on Critical Strike, and it can have evasion, xD

Code:
HidingMastery1
    Events
        Unit - A unit Learns a skill
    Conditions
        HidingMasteryLevel Equal to 0
        (Learned Hero Skill) Equal to Hiding Mastery 
    Actions
        Unit - Add Hiding  to (Triggering unit)
        Wait 2.00 seconds
        Set HidingMasteryLevel = (HidingMasteryLevel + 1)

Code:
HidingMastery2
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Hiding Mastery 
        HidingMasteryLevel Equal to 1
    Actions
        Unit - Add Evasion (Hiding Mastery) to (Triggering unit)
        Wait 2.00 seconds
        Set HidingMasteryLevel = (HidingMasteryLevel + 1)
Code:
HidingMastery3
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Hiding Mastery 
        HidingMasteryLevel Equal to 2
    Actions
        Unit - Add Haste (hiding mastery) to (Triggering unit)
        Wait 2.00 seconds
        Set HidingMasteryLevel = (HidingMasteryLevel + 1)
Code:
HidingMastery4
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Hiding Mastery 
        HidingMasteryLevel Equal to 3
    Actions
        Unit - Add Cloacking  to (Triggering unit)
        Wait 2.00 seconds
        Unit - Remove Evasion (Hiding Mastery) from (Triggering unit)
        Set HidingMasteryLevel = (HidingMasteryLevel + 1)


---
It seems that the Hero is not learning cloacking =/
 

vypur85

Hibernate
Reaction score
803
Code:
HidingMastery4
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Hiding Mastery 
        HidingMasteryLevel Equal to 3
    Actions
        [B]Set TempUnit = (Triggering Unit)[/B]
        Unit - Add Cloacking  to (Triggering unit)
        Wait 2.00 seconds
        Unit - Remove Evasion (Hiding Mastery) from [B]TempUnit[/B]
        Set HidingMasteryLevel = (HidingMasteryLevel + 1)

I think you should set the triggering unit into a variable. Not sure whether it helps or not.

Make a learn spell based of "Channel", and check the Channel options so that it's not visible (I think it's not visible by default). Then you make a trigger something like
Use Larcenist method to do the 'not showing skill thing'. It should work. Just base your Hiding Mastery spell off Channel and set the ability field as what Larcenist had told. Or if you don't want to use Channel, you can also use item abilities which don't have icon (attack speed increase, HP bonus, armor bonus, stats bonus etc etc). Then set Hero Ability = True while Item Ability = False. It will work similarly to Channel as well.

Edit: For the back sliding, maybe you should use a periodic sliding trigger instead.
 

gref

New Member
Reaction score
33
The reason you pass through doors is that the distance covered per periodic event is too large.

Make it occur more frequently (reduce the period) but make the distance less.

Yeah...and your trigger leaks. Position of Triggering Unit needs to be stored and removed as well.

Set the facing of the unit too if you want them to move backwards.
 
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