Al client script for collecting stat data

An archive of older topics.
Post Reply
Evilina
Posts: 1437
Joined: Wed Jan 25, 2006 8:42 am
Contact:

Al client script for collecting stat data

Post by Evilina »

everytime you stat a non channeler character this will first create a file in c:\ called character_stats.txt and each addiional time you stat it will append (write to) the file with the new stats, bmi, and mvs.

Code: Select all

#action {You have %1(%2) hit and %3(%4) movement points.}{#set moves %4};
#action {Your abilities are: Str: %1, Int: %2, Wis: %3, Dex: %4, Con: %5}{#set str %1;#set int %2;#set wis %3;#set dex %4;#set con %5;#set stats %1 %2 %3 %4 %5;#append stats c:\character_stats.txt;#delay bmi 2 {#append bmi c:\character_stats.txt;#append moves c:\character_stats.txt}};
#action {Your height is %1 feet, %2 inches, weight %3 pounds,}{#set feet %1;#set inches %2;#set weight %3;#set total_weight = weight * 703;#set total_inches = feet * 12 + inches;#set inches_2 = total_inches * total_inches;#set bmi = total_weight / inches_2};
#action {Tip: Your skills have reset!}{stat};

For collecting stat data of a channeler use the following!

Code: Select all

#action {You have %1(%2) hit, %3(%4) mana, and %5(%6) movement points.}{#set moves %6};
#action {Your abilities are: Str: %1, Int: %2, Wis: %3, Dex: %4, Con: %5}{#set str %1;#set int %2;#set wis %3;#set dex %4;#set con %5;#set stats %1 %2 %3 %4 %5;#append stats c:\channeler_stats.txt;#delay bmi 2 {#append bmi c:\channeler_stats.txt;#append moves c:\channeler_stats.txt}};
#action {Your height is %1 feet, %2 inches, weight %3 pounds,}{#set feet %1;#set inches %2;#set weight %3;#set total_weight = weight * 703;#set total_inches = feet * 12 + inches;#set inches_2 = total_inches * total_inches;#set bmi = total_weight / inches_2};
#action {Tip: Your skills have reset!}{stat};
This will save a characters information in the text file using three lines per stat.
The first line is the stats, the second the bmi and the third the moves.

--Example--

16 17 17 17 16
19
130


After reaching level 5 the script will automatically hit stat for you and append the text file, every time you check your stats after the intial statting the script will write the same stats to the file. So only check your stats once after statting or be prepared to delete multiple entries from the text file.


Amazing, I quit drinking and I am kind of a fart smeller again. :P
Post Reply