Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You can add functions by adding them to a user include file (must be either a .txt or a .j file). Put that file in the tesh/includes subfolder. In the file, just add your full function definition, for example:
function MyFunction takes integer i returns integer
return 2*i
endfunction
The function will then be added to the autocomplete list, the syntax highlighter, it will have calltips and a function list entry (in the category "user includes").
Also note that you don't have to restart the WE if you added new custom functions: You can reload user includes through the TESH menu by "TESH->Reload user includes".
Since I'm using the old version, I don't seem to have that database. The one I do have is for functions and constants, but doesn't contain keywords.
Were the keywords hardcoded in that version?
Which version are you using exactly? You should see that if you click on the "Help" button. Is there a particular reason that you don't use the latest version?
The one that came with jngp 5d or 5e. I ended up merging those editors at some point, so could've been either one.
It says version 0.7 and looking at the changelog files, the last update was to Horus.
I've been using this one simply because that's the one I've had for a long time and haven't had issues with it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
function MyFunction takes integer i returns integer
return 2*i
endfunction
The function will then be added to the autocomplete list, the syntax highlighter, it will have calltips and a function list entry (in the category "user includes").
Also note that you don't have to restart the WE if you added new custom functions: You can reload user includes through the TESH menu by "TESH->Reload user includes".