RpgApproach

Class · author / trusted game code

class RpgApproach: object · Source

One method of pursuing a goal. Hooks use original game-specific content. blockedReason, modifierFor and oppositionModifierFor must be observational. apply runs once per fresh resolution, including failures and ties.

Authoring guide · Reporting guide · Reference index

Superclass: object (external)

Derived declarations: RpgSocialApproach

Declared members

apply

apply(c, result) · Source

assessmentDisclosure

assessmentDisclosure = nil · Source

attribute

attribute = rpgIQ · Source

automatic

automatic = nil · Source

blockedReason

blockedReason(c) · Source

challenge

challenge = nil · Source

completesChallenge

completesChallenge = true · Source

contextLabelId

contextLabelId = 'rpg.modifier.preparation' · Source

costlyMargin

costlyMargin = 0 · Source

Ordinary failures within this margin can achieve the goal at a cost. Zero disables this policy. It never promotes critical failures or ties.

disclosureFor

disclosureFor(c, source) · Source

Observational override for knowledge-dependent disclosure.

energyCost

energyCost = 0 · Source

id

id = nil · Source

modifier

modifier = 0 · Source

modifierFor

modifierFor(c) · Source

modifierLabelId

modifierLabelId = 'rpg.modifier.situation' · Source

opponent

opponent = nil · Source

oppositionAttribute

oppositionAttribute = rpgWill · Source

oppositionContextLabelId

oppositionContextLabelId = 'rpg.modifier.opposition-preparation' · Source

oppositionModifier

oppositionModifier = 0 · Source

oppositionModifierFor

oppositionModifierFor(c) · Source

oppositionModifierLabelId

oppositionModifierLabelId = 'rpg.modifier.opposition' · Source

oppositionSkill

oppositionSkill = nil · Source

requiresExertion

requiresExertion = true · Source

rollDisclosure

rollDisclosure = nil · Source

skill

skill = nil · Source

timeCost

timeCost = 0 · Source

GitHub source