PDA

View Full Version : Getting User's Profession



Woden
06-06-2008, 04:39 AM
Surely there's a method which returns the user's profession, but damned if I can find it. Can anybody fill me in?

Renian
06-06-2008, 08:05 PM
Char.prof

;exec echo Char.prof
--- Lich: exec1 active.
[exec1: Rogue]
--- Lich: exec1 has finished.

Woden
06-06-2008, 08:55 PM
Thanks. : )

Shaelun
06-07-2008, 12:25 AM
You can check most of your stuff that way, e.g.:


Char.level #Shockingly enough... the current char's level

Stats.level #Same

Char.name #Guess :)

Char.age #Yeah, Lich even tracks this

Stats.str[0] #Value of character's strength stat

Stats.str[1] #Value of character's strength bonus

Char.dex[0] #Same as Stats.dex

Char.race

Society.member #What society you're a member of... the new one didn't exist when I wrote it, don't expect Lich to track those ranks

Society.rank #What rank/step you are (again, only CoL/Voln)

Skills.pickinglocks #Picking locks ranks

Skills.climbing #Climbing ranks... they're all the same, just make sure you get the exact spelling right (as far as the in-game description is concerned)

Skills.mmc #Mental mana control. emc is Elemental, etc.

Skills.mldivination #Mental Lore: Divination

Skills.elair #Elemental lore: air. The rest follow suit

Skills.to_bonus(60) #Converts a rank value to a bonus value. 60 is an example

Gift.remaining #Time in seconds you have remaining on Gift of Lumnis

Spellsong.duration #Time in seconds your spellsongs last (if you're a Bard obviously)

Spellsong.timeleft

Spellsong.tonishastebonus #Haste (in seconds) granted by 1035

Spellsong.tonisdodgebonus #Number of dodge ranks granted by 1035

Spellsong.mirrorsdodgebonus #Dodge ranks given by 1019

Spellsong.mirrorscost #Mana cost of 1019

Spellsong.depressionpushdown #TD pushdown of 1015, song of depression

Spellsong.depressionslow #Slow effect (in seconds) of targets of 1015

Spellsong.sonicarmordurability #Sonic armor durability

Spellsong.sonicbladedurability #Sonic weapon durability

Spellsong.sonicshielddurability #Sonic shield durability

Spellsong.sonicarmorbonus #Enchant bonus of sonic armor

Spellsong.sonicbladebonus #As above

Spellsong.sonicshieldbonus #As above

Spellsong.valorbonus #Song of Valor bonus

Spellsong.valorcost #Song of valor cost

Spellsong.luckcost #Mana cost of 1006, song of luck

Spellsong.holdingtargets #Number of targets afflicted by song of holding

Char.health #Character's current health

Char.mana #Character's current mana

Char.spirit #Character's current spirit

Char.stamina #Character's current stamina... only in SF

Char.maxmana #Char's current mana. The others work the same

Spell[401].name #The full name of the given spell number

Spell[401].msgup #The message seen when a spell becomes active

Spell[401].msgdn #The message seen when a spell melts

Spell[401].duration #The code used to determine the duration of your casts of 401. Works with any spell Lich tracks (e.g. 406, 101, etc.). If you want to actually evaluate it & get a number, just pass this string to the ``eval'' method, as in ``eval(Spell[401].duration)''

Spell[401].cost
... okay, I'm way too sick of reading the source to ramble off anymore. That's a pretty decent list though. Some have synonyms, some don't.

Gibreficul
06-07-2008, 06:48 AM
you do know that negative bonuses are seen as positive using the lich methods....

Stats.aur[1] will have the value of 2 if the bonus is -2, for example.

:wtf:

Otherwise, Shaelun, thanks for that list, it's AWESOME.

Shaelun
06-12-2008, 03:36 AM
you do know that negative bonuses are seen as positive using the lich methods....

Stats.aur[1] will have the value of 2 if the bonus is -2, for example.


Nope, I didn't have a clue. Thanks -- fixed it for the next version. If you want the fix before then, just download the latest copy of infomonitor.lic from the repository.