UOSAGAS Scripting

Layers & Skills

Two lookup tables you will keep coming back to. Both are matched case-insensitively, and both come from the assistant itself, not from a hand-kept list that might have drifted.

Layer names

Accepted by findlayer, undress, clearhands and drop.

if findlayer self righthand as weapon
    getlabel weapon label
endif
 
undress 'shirt'
drop 0x400EED2A InnerTorso
LayerNotes
righthand One-handed weapon / tool.
lefthand Two-handed weapon, shield or light source.
shoes
pants
shirt
head
gloves
ring
talisman
neck
hair
waist
innertorso
bracelet
face
facialhair
middletorso
earrings
arms
cloak Quivers occupy this layer on most shards.
backpack
outertorso
outerlegs
innerlegs
mount Your mount, when you are riding.

Skill names

Write a skill name with the spaces removed: animallore, detectinghidden, evaluatingintelligence. Matching ignores case.

if skill 'magery' > 50
    cast 'greater heal'
endif
 
skill 'meditation'          // use it
setskill 'blacksmithy' up   // set the lock arrow
SkillIndexUsable
alchemy 0 no
anatomy 1 yes
animallore 2 yes
itemidentification 3 yes
armslore 4 yes
parrying 5 no
begging 6 yes
blacksmithy 7 no
bowcraft/fletching 8 no
peacemaking 9 yes
camping 10 yes
carpentry 11 no
cartography 12 yes
cooking 13 no
detectinghidden 14 yes
discordance 15 yes
evaluatingintelligence 16 yes
healing 17 yes
fishing 18 yes
forensicevaluation 19 yes
herding 20 yes
hiding 21 yes
provocation 22 yes
inscription 23 no
lockpicking 24 yes
magery 25 no
resistingspells 26 no
tactics 27 no
snooping 28 no
musicianship 29 no
poisoning 30 yes
archery 31 no
spiritspeak 32 yes
stealing 33 yes
tailoring 34 no
animaltaming 35 yes
tasteidentification 36 yes
tinkering 37 no
tracking 38 yes
veterinary 39 yes
swordsmanship 40 no
macefighting 41 no
fencing 42 no
wrestling 43 no
lumberjacking 44 no
mining 45 no
meditation 46 yes
stealth 47 yes
removetrap 48 yes
necromancy 49 no
focus 50 no
chivalry 51 no
bushido 52 no
ninjitsu 53 no
spellweaving 54 no
mysticism 55 no
imbuing 56 no
throwing 57 no

A few shorthands are also accepted: itemid, evalint, forensic / forensiceval, provo, spirit, tasteid.

Usable vs readable

Every skill can be read with the skill expression and locked with setskill. Only some can be invoked with the skill command. Those are the ones with a button in the skills window, marked “usable” above.

Asking for an unusable one is not an error; the command warns and lists what is available, so skill 'blacksmithy' tells you rather than silently doing nothing.