Tomb Titivator
Posts: 808
Joined: Sunday, 23rd June 2013, 15:20
Fix auto-pickup multiple Misc
Would be awesome to fix this.
Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.
Tomb Titivator
Posts: 808
Joined: Sunday, 23rd June 2013, 15:20
Ziggurat Zagger
Posts: 6418
Joined: Friday, 6th July 2012, 12:48
Tartarus Sorceror
Posts: 1739
Joined: Tuesday, 13th March 2012, 02:48
Tomb Titivator
Posts: 885
Joined: Sunday, 28th June 2015, 14:44
Ziggurat Zagger
Posts: 6418
Joined: Friday, 6th July 2012, 12:48
Ziggurat Zagger
Posts: 4055
Joined: Tuesday, 10th January 2012, 19:49
Tartarus Sorceror
Posts: 1739
Joined: Tuesday, 13th March 2012, 02:48
Tartarus Sorceror
Posts: 1698
Joined: Saturday, 18th June 2016, 13:57
Slime Squisher
Posts: 395
Joined: Monday, 28th April 2014, 19:50
Sar wrote:it would also be great to have decks on auto-pickup as a Nemelex follower without having to put all the misc items on autopickup
Shtopit wrote:Is there a way to change which items are auto-picked up in-game? Like saying, I already have rings which give me magic resistance, stop picking them?
Ziggurat Zagger
Posts: 6418
Joined: Friday, 6th July 2012, 12:48
genericpseudonym wrote:I just autopickup everything with {god gift}
Dungeon Master
Posts: 625
Joined: Thursday, 23rd October 2014, 03:08
Sar wrote:Ash followers? People with lots of curing? Weeaboos?
Vestibule Violator
Posts: 1509
Joined: Wednesday, 21st September 2011, 01:10
Location: St. John's, NL, Canada
Sar wrote:genericpseudonym wrote:I just autopickup everything with {god gift}
yes but then I would have to edit rc instead of pressing / and choosing an option like a casual I am
Lair Larrikin
Posts: 29
Joined: Thursday, 13th March 2014, 16:44
Shtopit wrote:Is there a way to change which items are auto-picked up in-game? Like saying, I already have rings which give me magic resistance, stop picking them?
# autopickup by Medar, tweaked by rchandra
{
local function armour_plus(it)
local plus = string.gsub(it.name(), "+", "", 1)
return tonumber(string.gsub(plus, "[^-%d]", ""))
end
local function autopickup(it, name)
if it.is_useless then
return false
end
if it.artefact then
return true
end
local class = it.class(true)
if class == "armour" then
local good_slots = {cloak="Cloak", helmet="Helmet",
gloves="Gloves", boots="Boots",
shield="Shield"}
st, _ = it.subtype()
weap = items.equipped_at("Weapon")
if st == "shield" and weap ~=nil and weap.hands == 2 then return false end
if good_slots[st] ~= nil then
if it.branded then return true end
local cur = items.equipped_at(good_slots[st])
if cur == nil then return true end
if cur.branded or cur.artefact then return false end
if armour_plus(it) ~= nil then
if armour_plus(it) > armour_plus(cur) then return true end
else
if armour_plus(cur) < 0 then return true end
end
elseif st == "body" then
local cur = items.equipped_at("armour")
if cur == nil then return false end
if cur.name("qual") ~= it.name("qual") then return false end
if it.branded then return true end
if cur.branded or cur.artefact then return false end
if armour_plus(it) ~= nil then
if armour_plus(it) > armour_plus(cur) then return true end
else
if armour_plus(cur) < 0 then return true end
end
end
end
return
end
add_autopickup_func(autopickup)
}
Slime Squisher
Posts: 395
Joined: Monday, 28th April 2014, 19:50
xbon wrote:as for not picking up multiple misc, why wouldn't you want to? Two phials of flood is better than one,since you can use the other when one is off cooldown, etc, maybe it comes down to personal preference but I love decks (since you can just eVoke them like wands now) and multiple miscs.
Ziggurat Zagger
Posts: 6418
Joined: Friday, 6th July 2012, 12:48
Lair Larrikin
Posts: 29
Joined: Thursday, 13th March 2014, 16:44
genericpseudonym wrote:xbon wrote:as for not picking up multiple misc, why wouldn't you want to? Two phials of flood is better than one,since you can use the other when one is off cooldown, etc, maybe it comes down to personal preference but I love decks (since you can just eVoke them like wands now) and multiple miscs.
This hasn't been the case since .17 or earlier. Nowadays all phials share the same cooldown period.
It's still useful to carry multiple decks, bobs, sacks, or mirrors. Just not the elemental evokers.
Vestibule Violator
Posts: 1509
Joined: Wednesday, 21st September 2011, 01:10
Location: St. John's, NL, Canada
xbon wrote:Shtopit wrote:Is there a way to change which items are auto-picked up in-game? Like saying, I already have rings which give me magic resistance, stop picking them?
this auto pickup does what you want...
once you pick up one of a certain type of ring <magic resistance, poison resistance, etc> it takes the rest off auto pickup (it'll also try and pick up any valid item slot that you don't have equipped, and if yours isn't branded it'll look for a branded version, etc.) kudos to rchandra and Medar for making it.
Ziggurat Zagger
Posts: 4055
Joined: Tuesday, 10th January 2012, 19:49
crate wrote:If you set autopickup exceptions to not pick up "ring of" then you won't autopickup type-identified rings. You can then either set further exceptions for the rings you do want to pick up (ring of slaying, protection, etc.) or just pick them up manually.
Lair Larrikin
Posts: 29
Joined: Thursday, 13th March 2014, 16:44
rchandra wrote:xbon wrote:Shtopit wrote:Is there a way to change which items are auto-picked up in-game? Like saying, I already have rings which give me magic resistance, stop picking them?
this auto pickup does what you want...
once you pick up one of a certain type of ring <magic resistance, poison resistance, etc> it takes the rest off auto pickup (it'll also try and pick up any valid item slot that you don't have equipped, and if yours isn't branded it'll look for a branded version, etc.) kudos to rchandra and Medar for making it.
Sadly that one just works on armours, the ring problem is more difficult especially as Octopodes, Ru, and the macabre necklace all exist. You might be better off just setting all known rings to not pick-up, then manually getting the duplicates that you want. I just use \ each time, so far.
Tomb Titivator
Posts: 853
Joined: Thursday, 29th August 2013, 18:39
Slime Squisher
Posts: 395
Joined: Monday, 28th April 2014, 19:50
johlstei wrote:Why do multiples of elemental evokers spawn again?
Ziggurat Zagger
Posts: 4478
Joined: Wednesday, 23rd October 2013, 07:56
genericpseudonym wrote:johlstei wrote:Why do multiples of elemental evokers spawn again?
The game spawns plenty of things that the player doesn't care about. You can get duplicate amulets, naga bardings on non-nagas, scrolls of blinking on formicids...
Return to Game Design Discussion
Users browsing this forum: No registered users and 194 guests