SO i want to be able to list all variables that start with a certain word
like to build a list of loaded plugins, or all loaded scripts - for example, autoload adds $Autoload::ran* values
$Autoload::ranCore/Misc.cs = "true";
$Autoload::ranCore/OC3Patch.cs = "true";
for each of the scripts it hits
pluginloader adds
$LoaderPlugin::ChatMenu = "True";
$LoaderPlugin::ScriptGL = "True";
$LoaderPlugin::TransChat = "True";
i'd like to be able to list all of those values that start with $Autoload::ran or $LoaderPlugin:: and use them in an array
but i dont know how many there will be or what they will be named
is that even possible?
failing that, could i export($LoaderPlugin::*, mylistofplugins.cs); and then somehow use that file?
(i guess worst case scenario i can maybe modify autoload and pluginloader to make the array at the same time they add those vars?)
plaes halp
[script] get a list of some variables???
Re: [script] get a list of some variables???
Auto create the array when you define the variables, or type $LoaderPlugin:: into console and hit tab to scroll through the list that way lol
Re: [script] get a list of some variables???
The console doesn't auto-complete, bob, but that is an excellent idea for a plugin.
Re: [script] get a list of some variables???
Is it only for functions?
Re: [script] get a list of some variables???
I don't believe it auto completes for functions either.
You can use the up and down arrows to repeat a command that you typed previously, just like the chat hud, but I don't know if any auto complete abilities.
It also frequently echoes helpful information when you type a command and neglect the arguments.
You can use the up and down arrows to repeat a command that you typed previously, just like the chat hud, but I don't know if any auto complete abilities.
It also frequently echoes helpful information when you type a command and neglect the arguments.
Re: [script] get a list of some variables???
Yeah it does. Type "object" into console and hit tab
Re: [script] get a list of some variables???
Wow, I never knew it did that... I just tried it with each letter of the alphabet, and this is what it filled in!
Can you guess which one I wrote?
- abs();
BanList::add();
C::Clear();
dataFinished();
echo();
File::copy();
Game::EndFrame();
hideToolWin();
Include();
JGBuddyCombo::select(
kill();
L::Clear();
mapEditor();
net::kick();
Object::getName();
playDemo();
Quickstart();
SAD();
table();
underground();
vChatMenuHud::Create();
WaypointToWorld();
xmlizename();
y
zadmin::getWeapon();
Can you guess which one I wrote?
Re: [script] get a list of some variables???
it autocompletes variables and functions no prob, even inside other commands
so you can type $pref::what, and then hit tab and it'll autocomplete it with vars that starts with $pref::what
but you can also type echo($pref::what and hit tab and it'll fill in the var inside the echo command
so you can type $pref::what, and then hit tab and it'll autocomplete it with vars that starts with $pref::what
but you can also type echo($pref::what and hit tab and it'll fill in the var inside the echo command
Re: [script] get a list of some variables???
something interesting to try - export all functions from 1.3 and then do the same in 1.4
lots of odd little differences and added funcs in 1.4
lots of new math that i already knew was in there too but also HTML/XML related stuff like div and span, htmltag(), htmlemit and xmlizename
a few i'm curious about - isFunction() ? also a bunch of Stack functions?
i dont think Control::getId(); was in 1.3 either was it?
lots of odd little differences and added funcs in 1.4
lots of new math that i already knew was in there too but also HTML/XML related stuff like div and span, htmltag(), htmlemit and xmlizename
a few i'm curious about - isFunction() ? also a bunch of Stack functions?
i dont think Control::getId(); was in 1.3 either was it?
Re: [script] get a list of some variables???
Likely for PlayTribes (browser version)?lots of new math that i already knew was in there too but also HTML/XML related stuff like div and span, htmltag(), htmlemit and xmlizename