Quote:
Originally posted by ForgottenLegacy
*The following is a guess*
I found it easier for styling issues for instead of removing the strequals, (used for debugging a script), you could just leave it in there and replace the second string with whatever the first string was. It's easier than just restyling the whole script by removing that line. (They don't have 'style' buttons online)
|
ok yeah, im glad i get to get to this first finally
There is no style button really but it is possibile to style your scripts online.
Quote:
There is now a new command on RC:
/style scripttype name
Scripttype can be class, npc or weapon.
It is reformatting the script to look nicer. Please test it before using, sometimes triggeractions can be messed up because it divides weapon names like Day-Night in Day - Night. You can change the style options in the server options:
scriptstyle=spaces=2,padding=oper,brackets=attach
Spaces gives the number of spaces to put in front of each line (indenting).
Padding says where to put spaces in between:
'oper' will put spaces behind commands like 'if' and before and after operands like '+' and '==',
'paren' will put spaces in [] and (),
'all' will do both.
Brackets says if it should break lines before and after { and } ('break'),
or if it should actually attach it to the previous 'if' or 'for' command ('attach'). Use 'linux' as option if you want to break declarations (array declarations like a = {1,23}) but want to attach brackets after commands.
The npcserver uses the astyle library to format the text.
|
I guess you or anyone on babylon was aware of this? Anyhow now you are, so its not a style button really, like i said, you have to type
just a little but i guess you could get over that very easily.
