Invisibility prblem - JASS

RocKNRolL

New Member
Reaction score
0
So i duplicated the Invisibility spell and created one of mine that his only thing he does it's to make unit invisible and activate 'invisible' buff.
This invisibility make a unit invisible and slow her down (-70% from currect speed)
Invisible [Buff] = 'B002'
Invisibility [Skill] = 'A007'
So i have this script that i made, but when i add the check to see if the buff is still on the unit does not slows down.
JASS:

function Trig_invisibility_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'A007'      
endfunction

function Trig_invisibility_Actions takes nothing returns nothing
    local unit uvisible = GetTriggerUnit()
    local timer t1 = CreateTimer()
    local real uspeed = GetUnitMoveSpeed(uvisible)
    call SetUnitMoveSpeed(uvisible, (uspeed - (uspeed * 70.00 / 100.00)) )
    loop
        exitwhen UnitHasBuffBJ(uvisible, 'B002') == false
        call StartTimerBJ(t1,true,1.00)
        call DestroyTimer(t1)
    endloop
    call SetUnitMoveSpeed( uvisible,uspeed )
    set uspeed = 0.00
    set uvisible = null
    set t1 = null
endfunction


Thank you for any help =]

And by the way Invisible is a unit targed spell and i would like a no target spell, tho i tried Wind Walk but it keeps showing me critical when it's done even if i turn it off. any ideas will be great :D
and please not some blasting script cuz ima still a begginer and i don't know much about JASS beside tuts at the main thread and basic knowlage..
Thanks agian :)
 

RaiJin

New Member
Reaction score
40
i would say make a dummy cast a slow spell would be way more better for u imo:thup:

also instead of doing uspeed - uspeed * 70 /100 you can do

uspeed - uspeed*0.7 would be 10x better
:thup:

you also use a lot of BJ's try to use the native functions they are much faster:thup:

:thup::thup:sorry for abusing:thup: juts bored xD

well goodluck with coding:thup:
 

vypur85

Hibernate
Reaction score
803
> any ideas will be great

Apparently what you want is actually Wind Walk. It fits all your descriptions. Take off the critical thing by setting 'Targets allowed - None'.
 

Tom Jones

N/A
Reaction score
437
Your loop will definately hit the operation limit, and by doing so kill the thread.
The timer thing you're doing inside the loop is pointless.
It's dangerous to destroy a timer before it has been paused.
 

RocKNRolL

New Member
Reaction score
0
Your loop will definately hit the operation limit, and by doing so kill the thread.
The timer thing you're doing inside the loop is pointless.
It's dangerous to destroy a timer before it has been paused.

I was tring to make this loop check if the buff is off evey sec and couldn't use wait because it didn't work :S

i would say make a dummy cast a slow spell would be way more better for u imo:thup:

also instead of doing uspeed - uspeed * 70 /100 you can do

uspeed - uspeed*0.7 would be 10x better
:thup:

you also use a lot of BJ's try to use the native functions they are much faster:thup:

:thup::thup:sorry for abusing:thup: juts bored xD

well goodluck with coding:thup:

Lol thats good XD
How can i learn without been abused? :D
Thanks :)

> any ideas will be great

Apparently what you want is actually Wind Walk. It fits all your descriptions. Take off the critical thing by setting 'Targets allowed - None'.

-I will try the Wind Walk as soon as i will return from skool and let you know thanks :D
 

Embrace_It

New Member
Reaction score
9
If you are using Wind Walk, go to File -> Preferences and check the box that says 'Allow negative real values in the Object Editor'. You can then go to the Object Editor and set the speed bonus for your spell to -0.70, that'd be easier than triggering it.
 

RocKNRolL

New Member
Reaction score
0
If you are using Wind Walk, go to File -> Preferences and check the box that says 'Allow negative real values in the Object Editor'. You can then go to the Object Editor and set the speed bonus for your spell to -0.70, that'd be easier than triggering it.

Lol i know that looked for it like an hour till i found it.. thanks anyway :D

-----
I have used Wind Walk and changed the targets to none, but it still shows the critical hit - i even turn of the backstab damage (Data - Backstab Damage = False)
Still nothing works..
Any ideas? :S
 

wellwish3r

wishes wells.
Reaction score
52
if you are not using wind walk anywhere else in you map, you could simply remove the back stab damage text in the game play constants.
 

RocKNRolL

New Member
Reaction score
0
if you are not using wind walk anywhere else in you map, you could simply remove the back stab damage text in the game play constants.

Umm sounds promessing.. but one problem, game play constants? :S
Preferenses? :S where do i find game play constants?
Thanks :)
 

Rainther

I guess I should write something of value here...
Reaction score
61
Inside World Editor - Open your map - Advanced - Game Constants...

Erhm, don't read this... :D
 

RocKNRolL

New Member
Reaction score
0
Uhhh i looked both and couldn't find something related to backstab damage..
Any discreption of it looks in there? it must be under 'Text - General' but i couldn't find it :S
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top