ゲームに役立つ設定ファイル例を挙げていきましょう。 大岩投擲ができる種族のみ拾う †: if you.race() == "Ogre" or you.race() == "Troll" then autopickup_exceptions ^= <large rock : end 特定のアイテムを特定のキーに割り当て †item_slot ^= ration:e item_slot ^= scroll of identify:r "rr"で鑑定したり(0.21以降の場合)"ee"で食料を食べたりできるようになります。 クローク類/兜類/グローブ/靴をまだ装備していない場合に自動で拾う †{ add_autopickup_func(function(it, name) if it.is_useless then return end if it.class(true) == "armour" then local good_slots = {cloak="Cloak", helmet="Helmet", gloves="Gloves", boots="Boots"} st, _ = it.subtype() if good_slots[st] ~= nil and items.equipped_at(good_slots[st]) == nil then return true end end end) } |