Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Came across this when i was locking for a bag, which i could use as a backpack for Tabletop RPG's.
I would second what Lorenzetty said. It would be great if you could set a max value for the counting bag. So if you try to add something which would put it above the max value, it would spit it right back out at a specific place in a radius around the bag.
Kinda like the peerless finite bags but with Item value instead of number of objects.
Use case would be That it would be perfect to use as a Bag of Holding where you have a max. capacity of your backpack and then asign "value" or "weight" to item cards for weapons, armor so players have to pay attention to how much they can carry.
1. It now is set by default to accept the variables "value", "cost", "price", or "coin" - lower, upper, or title case, in the name, description, Lua code, or Lua save state. E.g. description "Value: -341.50" works.
2. It knows the values "nickel" (5), "dime" (10), and "quarter" (25).
3. It now works with negative and decimal values, for all fields. (This was a bug before in name/description.)
4. It has full recursion, even if the thing you put in isn't a Counting Bag.
5. It has "canasta mode". ;)
6. It has actually working save state. (Oops. ><)
Bui its still not possible for Card Descriptions. So i added everything into the code
@Findanniin Just use correct Lua numbers. 0.5 e.g. should work, but .5 probably won't.
Due to TTS' scripting, I'd have to specify exactly where the ejected items go. I guess the most neutral place to put them would be hovering directly above, since I can't rely on any place around it being clear. Or I'd have to have it have a way to set the ejection site, which is a bit of a pain but doable.
What's the use case you have in mind?
Our play group has several retirees in it, so the counting bags are expected to save us so much time (and mistakes) each Sunday.
@saizai Great Mod, loved your script
Is there a script edit I can do to display values smaller than 1?
I know that the counting bowl you based this on will display .5 values for example, and I'd like to use this so count silver/copper this way.
How do you get the value of the bag?
x = 0
for i=1,10 do x = x + 0.1 end
print(x == 1) ----> false
print(0.1 + 0.2 == 0.3) ----> false
I'll try and figure it out myself later, but if you can give me a heads up of where to look I'd appreciate it ^_^
Thanks!