<aliases>
<alias
match="players_equipment"
enabled="y"
regexp="y"
send_to="12"
ignore_case="y"
sequence="100"
>
<send>PC_Equipment = "an eye of a Kraken|a ring of wizardry|the ring of the serpent|the Overlord's necklace of protection|a holy symbol of Ithrilis|a set of overlord armor|the leggings of an elder dragon|a pair of golden-spurred boots|the lieutenant's gauntlets|a pair of green dragonscale sleeves|a battered iron shield|Yourban's soul|a spectral aura|the belt of the master craftsman|a magical belt pouch|a bracelet set with white moonstones|a bracelet of the elements|an Eldmarian Slayer"
for PC_Equipment in string.gmatch (PC_Equipments, "%a+") do
Send ("remove all\.", PC_Equipment)
Send ("wear 'a pair of brass spectacles'")
send ("wear ", PC_Equipment)
end -- for</send>
</alias>
</aliases>
The error is those:
Run-time error
World: Materia Magica GMCP
Immediate execution
[string "Alias: "]:3: bad argument #1 to 'gmatch' (string expected, got nil)
stack traceback:
[C]: in function 'gmatch'
[string "Alias: "]:3: in main chunk