• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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?
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
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.
 
Level 12
Joined
Dec 25, 2010
Messages
972
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.
Top