Yes, we do stuff like this all the time with Moneo. Without it we'd have spent literally tens of thousands more hours developing (or more likely just not done all the stuff we wanted
'> ).
You can download it here:
DownloadQuite simply, it allows you to use letoscript on files without the server having to be running.
Example Scripts:
Make all the static places in an area nonstatic and plot, and up their fort save to 100, in preparation for a 'fire burns trees' edit:
%git = 'temp0/canopy4.git';
for (/{'Placeable List'}) {
if (/~/Static == 1) {
/~/Static = 0;
/~/Plot = 1;
/~/Fort = 100;
print /~/Tag, "\\n";
}
}
%git = '>';
%close(%git);
For every area in the module whose resref is prefixed with 'ele_earth_', check all the triggers whose resref is 'newtransition', set their OnClick script to hg_area_trans, and set a CheckEnv int to value 3 on them.
%mod = 'Path of Ascension CEP Legends.mod';
for (%mod['ele_earth_*.git']) {
for (/{'TriggerList'}) {
if (/~/TemplateResRef eq 'newtransition') {
/~/OnClick = 'hg_area_trans';
add /~/VarTable, type => gffList unless /~/VarTable;
add /~/VarTable/Name, type => gffString, value => "CheckEnv";
add /~/VarTable/[_]/Type, type => gffDword, value => 1;
add /~/VarTable/[_]/Value, type => gffInt, value => 3;
}
}
}
%mod = '>';
close(%mod);
Moneo is also extremely useful for data mining. This script prints out a list of all the item resrefs in the module that have the 'MissileResref' variable set on them.
%mod = 'Path of Ascension CEP Legends.mod';
for (%mod['*.uti']) {
for (/VarTable) {
if (/~/Name eq "MissileResref") {
print /TemplateResRef, " ", /~/Value, "\\n";
}
}
}
I have dozens upon dozens of example scripts like this for you to extrapolate from, if you want them. Having a gff viewer like Alia is extremely handy when doing this stuff, as it allows you to figure out what fields are name, and see what fields a given file has. You can find Alia here:
Download If you'd like me to show you how to set Moneo up and use it, or just want the sample scripts, contact me via yahoo instant messenger - I'll pm you the username.
Funky
Modifié par FunkySwerve, 11 juin 2011 - 04:06 .