Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: "Special" items  (Read 1573 times)

RoguelikeRazuka

  • Bay Watcher
    • View Profile
"Special" items
« on: December 31, 2014, 08:41:08 am »

I think it'd be cool if you introduced into adventure mode items which could change character's fate very drastically. For example, by delivering him good luck or more troubles. Magical cards, sacred or cursed ankhs, items of the dead, items granted by gods. I read story of one guy's character, and I was admired. He encountered some epic monster which was unreachable by melee weapons, but could be hit by thrown items. The guy had thrown all the items he had to throw exept one - a dagger - and it didn't deliver any harm to the monster. And then he thows that dagger - the monster's head falls down from his shoulders. It was such a great piece of luck! These insane happenings could be provided by holding items like those I have mentioned, don't you think so?
« Last Edit: December 31, 2014, 08:43:00 am by RoguelikeRazuka »
Logged

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: "Special" items
« Reply #1 on: December 31, 2014, 10:08:56 am »

Artifacts are planned to have magical effects in the future, I believe, which might do some of this stuff. Luck doesn't really figure into DF, though.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

Witty

  • Bay Watcher
    • View Profile
Re: "Special" items
« Reply #2 on: December 31, 2014, 10:43:53 am »

Not luck persay, but there is sort of a random factor in combat. Being cursed for example will cripple your ability to hit anything. So having a weapon/artifact that has an opposite effect wouldn't be so out of place.
Logged
Quote from: Toady One
I understand that it is disappointing when a dwarf makes a spiked loincloth instead of an axe.

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: "Special" items
« Reply #3 on: December 31, 2014, 10:45:11 am »

That's true. Some kind of magical boost to combat skills.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

Deboche

  • Bay Watcher
    • View Profile
Re: "Special" items
« Reply #4 on: December 31, 2014, 01:02:59 pm »

Not luck persay, but there is sort of a random factor in combat. Being cursed for example will cripple your ability to hit anything. So having a weapon/artifact that has an opposite effect wouldn't be so out of place.
This wouldn't really feel like luck though, rather lack of skill. Luck is what was described in the first post but in that case it was actually luck.

So if luck was to be featured in the game, it'd have to be the same as it exists in other games like critical hits and stuff like that. DF seems to have plenty of that already, we've all seen situations where an unarmed and apparently helpless creature manages to one-hit a dwarf.
Logged

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: "Special" items
« Reply #5 on: December 31, 2014, 01:16:30 pm »

Not luck persay, but there is sort of a random factor in combat. Being cursed for example will cripple your ability to hit anything. So having a weapon/artifact that has an opposite effect wouldn't be so out of place.
This wouldn't really feel like luck though, rather lack of skill. Luck is what was described in the first post but in that case it was actually luck.

So if luck was to be featured in the game, it'd have to be the same as it exists in other games like critical hits and stuff like that. DF seems to have plenty of that already, we've all seen situations where an unarmed and apparently helpless creature manages to one-hit a dwarf.
"Luck" would enter into the die-roll part of a skill check.  Internally, computers use a uniform distribution from 0 to 1 for random numbers (so it could be 0.006 or 0.8711247 or 0.9987163 or whatever) and the programmer manipulates that into the range of random numbers actually desired.

So, suppose the chance to hit was something exceedingly simple like:

if attacker_skill + weapon_quality - defender_skill - armor_quality - shield_bonus + random_number() > 0 then
    hit
else
    miss
end if


An easy way to incorporate "luck" would be to change the random_number() function to something that is still 0-to-1 but can be skewed high or low.  The beta distribution has that property, and a beta with the right parameters can even recreate a uniform random number.

The cost is that evaluating a beta is necessarily slower (under the hood, it still uses a uniform random number then transforms it), and DF seems to involve a lot of random numbers.  Fortunately, the current bottleneck in DF performance seems to be memory bandwidth rather than processor speed, so this might not make a big difference.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

Magistrum

  • Bay Watcher
  • Skilled Fortresser
    • View Profile
Re: "Special" items
« Reply #6 on: December 31, 2014, 02:45:12 pm »

Luck is already in the game, for example, the mummy curse is a reaction that makes your character "unlucky" and you get a 1/5 chance of getting the worse result possible in a combat roll. Also, once you're cursed you will never get lucky again.
Logged
In a time before time, I had a name.

Deboche

  • Bay Watcher
    • View Profile
Re: "Special" items
« Reply #7 on: December 31, 2014, 03:07:01 pm »

"Luck" would enter into the die-roll part of a skill check.
This is exactly what I mean, it wouldn't really be luck, your character would just be somewhat better or worse everytime he attacks. Having a higher probability of dealing or being dealt a critical hit is more similar to actual luck but still not quite.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: "Special" items
« Reply #8 on: December 31, 2014, 03:52:16 pm »

Luck doesn't really figure into DF, though.

CE_SKILL_ROLL_ADJUST is pretty explicitly a magical luck change.

RoguelikeRazuka

  • Bay Watcher
    • View Profile
Re: "Special" items
« Reply #9 on: December 31, 2014, 04:16:05 pm »

I believe it should work like Wild Wasteland trait from Fallout New Vegas. Not always for the good, but still fun and, which is more important, fatalistic.
Logged

vjmdhzgr

  • Bay Watcher
  • Hehehe
    • View Profile
Re: "Special" items
« Reply #10 on: December 31, 2014, 04:23:11 pm »

I believe it should work like Wild Wasteland trait from Fallout New Vegas. Not always for the good, but still fun and, which is more important, fatalistic.
If you want the Wild Wasteland perk try playing a new release right after a bunch of new features have been added. All anybody says is "it's inevitable", there's animal militaries, and yelling to yourself causes the game to crash.
Logged
Its a feature. Impregnating booze is a planned tech tree for dwarves and this is a sneak peek at it.
Unless you're past reproductive age. Then you're pretty much an extension of your kids' genitalia

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: "Special" items
« Reply #11 on: December 31, 2014, 04:27:55 pm »

Luck doesn't really figure into DF, though.

CE_SKILL_ROLL_ADJUST is pretty explicitly a magical luck change.
There's a difference between a straight adjustment and what I proposed above.  The CE_SKILL_ROLL_ADJUST is like a "+2 to all rolls" which can result in previously impossible achievements (or for a negative make previously achievable goals impossible).  The beta distribution doesn't change the bounds of what's possible, it just makes better or worse results more likely.

It only gets really interesting if the two parameters are a bit independent of one another.  Suppose we impose normal luck as 1, and let it range from 0.5 to 1.5 (to keep things from getting too far out of hand).  The outcome of Beta(attacker_luck,defender_luck) will skew as you might expect.  If both are lucky, results tend toward the middle and if both are unlucky, results tend toward the extremes.  If you'd prefer it the other way, just use Beta(1/defender_luck,1/attacker_luck).
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

Deboche

  • Bay Watcher
    • View Profile
Re: "Special" items
« Reply #12 on: January 01, 2015, 11:53:49 am »

Maybe luck could be a 1/big number chance at each frame to have something extremely good happen to you. If you're having a conversation, the person you're talking to falls in love with you or something; if you're in battle, score a critical hit or prevent a lot of damage; if you're just walking around, stumble on a jewel encrusted weapon and so on.

Similarly bad luck would be another 1/big number chance of having something terrible happen to you.

The big numbers are randomized when you create your character. And maybe you can pray to a god of luck and he'll randomize them again.
Logged

Sergarr

  • Bay Watcher
  • (9) airheaded baka (9)
    • View Profile
Re: "Special" items
« Reply #13 on: January 01, 2015, 12:07:40 pm »

Low chance things, while realistic, are horrible both in testing and in gameplay.
Logged
._.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: "Special" items
« Reply #14 on: January 01, 2015, 01:01:32 pm »

Well, the chance per tick of getting an artifact is 1/5000. Ticks are pretty short.