[Spell] Modification of this code

Status
Not open for further replies.
Level 12
Joined
Dec 25, 2010
Messages
972
Excuse me but:
I want to modify the Shadowraze ability from this spellpack to randomly use the distance variations so it only uses one button instead of three. however I don't know which part of the Shadowraze code to modify
Can someone just show me how?
 
Check under this code's tab "Shadowraze", you'll find something like CONFIGURABLE :

And when you go through every line you'll eventually notice this :

JASS:
// range of "Shadowraze (Z)"
private function GetRangeZ takes integer level returns real
    return 200.0
endfunction

// range of "Shadowraze (X)"
private function GetRangeX takes integer level returns real
    return 450.0
endfunction

// range of "Shadowraze (C)"
private function GetRangeC takes integer level returns real
    return 700.0
endfunction

All you have to do is modify those values...Also you remove both spells with hotkeys "C" and "X" and just use "Z" with your custom range.

I am not professional in JASS but I guess you can replace the value by a custom variable.
 
Check under this code's tab "Shadowraze", you'll find something like CONFIGURABLE :

And when you go through every line you'll eventually notice this :

JASS:
// range of "Shadowraze (Z)"
private function GetRangeZ takes integer level returns real
    return 200.0
endfunction

// range of "Shadowraze (X)"
private function GetRangeX takes integer level returns real
    return 450.0
endfunction

// range of "Shadowraze (C)"
private function GetRangeC takes integer level returns real
    return 700.0
endfunction

All you have to do is modify those values...Also you remove both spells with hotkeys "C" and "X" and just use "Z" with your custom range.

I am not professional in JASS but I guess you can replace the value by a custom variable.

Thank you for your opinion
but Professional opinion is recommended here
 
Status
Not open for further replies.
Back
Top