Stendhal/StatusEffects/Implementation: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
imported>AntumDeluge
Line 1: Line 1:
= Player Resistance =
= Player Resistance & Status =


* Player has a keyed slot (status_resistance(s)) where status can be added/removed.
* Player has a keyed slot (status_resistance(s)) where status can be added/removed.
Line 14: Line 14:
* Slots should be saved to the database so status and resistance are not lost at logout.
* Slots should be saved to the database so status and resistance are not lost at logout.


= Creature Resistance & Status +
* Attack/resistance slots can be added to the other as well to allow players to inflict status on creatures.

* The same can be applied reversed. Players can have "attack" slots and creatures "resistance".
** Allows players to inflict status effects on creatures.

Revision as of 09:47, 6 May 2013

Player Resistance & Status

  • Player has a keyed slot (status_resistance(s)) where status can be added/removed.
    • "key" is status name and "value" is the resistance value (0-100 or 0.0 to 1.0).
  • Creature has keyed status slot (status_attack) for attacks.
    • "key" is status name and "value" is probability of status being applied to player.
  • Player's resistance value is applied to creature's status probability during attack.
  • Player has a second keyed slot (status) that carries the current statuses of the player.
    • "key" is status name and "value" is duration of status.
  • Slots should be saved to the database so status and resistance are not lost at logout.

= Creature Resistance & Status +

  • The same can be applied reversed. Players can have "attack" slots and creatures "resistance".
    • Allows players to inflict status effects on creatures.