Talk:Eatsilent: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Heeheehee
mNo edit summary
imported>Heeheehee
m More discussion regarding return values.
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:


They both return false if you can't manage to consume the item. I tested that as well. (Didn't you get the memo?) --[[User:Heeheehee|Heeheehee]] 22:19, 11 April 2010 (UTC)
They both return false if you can't manage to consume the item. I tested that as well. (Didn't you get the memo?) --[[User:Heeheehee|Heeheehee]] 22:19, 11 April 2010 (UTC)
Oh, no, I meant it's kinda odd that eatsilent works differently than eat & overdrink works differently than drink, in regards to the return value.--[[User:StDoodle|StDoodle (#1059825)]] 23:58, 11 April 2010 (UTC)
:> ash eat(1,$item[tomato])
::Since you are not in a Mysticality sign, you may not visit the restaurant.
::You need 1 more tomato to continue.
::Returned: false
:> ash drink(1,$item[bloody mary])
::Since you are not in a Moxie sign, you may not visit the brewery.
::You need 1 more bloody mary to continue.
::Returned: false
I see no difference with regards to return value. Should we remove those bits from their respective pages, or no? --[[User:Heeheehee|Heeheehee]] 01:41, 12 April 2010 (UTC)

Latest revision as of 01:41, 12 April 2010

When not logged in:

> ash eatsilent(1,$item[knob mushroom])
Since you are not in a Mysticality sign, you may not visit the restaurant.
You need 1 more Knob mushroom to continue.
Returned: false

This suggests that the function does, in fact, take into account whether the item is eaten or not.

Edit: Erm, forgot to sign it. Here: --Heeheehee 02:11, 11 April 2010 (UTC)

Ok, I cheated; I copypasta'd for this & overdrink. :P It IS kinda odd that they work differently, though... --StDoodle (#1059825) 02:54, 11 April 2010 (UTC)

They both return false if you can't manage to consume the item. I tested that as well. (Didn't you get the memo?) --Heeheehee 22:19, 11 April 2010 (UTC)

Oh, no, I meant it's kinda odd that eatsilent works differently than eat & overdrink works differently than drink, in regards to the return value.--StDoodle (#1059825) 23:58, 11 April 2010 (UTC)

> ash eat(1,$item[tomato])
Since you are not in a Mysticality sign, you may not visit the restaurant.
You need 1 more tomato to continue.
Returned: false
> ash drink(1,$item[bloody mary])
Since you are not in a Moxie sign, you may not visit the brewery.
You need 1 more bloody mary to continue.
Returned: false

I see no difference with regards to return value. Should we remove those bits from their respective pages, or no? --Heeheehee 01:41, 12 April 2010 (UTC)