Skip to content

Pre Requisites

Sklore edited this page Sep 9, 2016 · 10 revisions

To check is the player is high enough level:

Expr-reqs Message: Pre-requisite Expression: #totallevelcount[] >= X

To check if an ability is greater than or equal to X add an Expr-Reqs with the following code.

  • #attrvalue[aSTR] >= X
  • #attrvalue[aDEX] >= X
  • #attrvalue[aCON] >= X
  • #attrvalue[aINT] >= X
  • #attrvalue[aWIS] >= X
  • #attrvalue[aCHA] >= X

To check is the character is proficient with armor:

  • Expr-reqs
  • hero.tagis[ArmProfGrp.ArmorLight] <> 0
  • hero.tagis[ArmProfGrp.ArmorMed] <> 0
  • hero.tagis[ArmProfGrp.ArmorHeavy] <> 0
  • hero.tagis[ArmProfGrp.Shields] <> 0

To check if the character is proficient with weapons:

To check if the player is proficient with a skill:

  • hero.tagis[ProfSkill.?] <> 0 (where ? is the unique id of the skill)

To check if the player is proficient with a tool:

  • hero.tagis[ProfTool.?] <> 0 (where ? is the unique id of the tool)

To check if the character has at least one spell:

Pre-reqs ~ Test that the character has at least one spell ~ or spell-like ability. & var HasSpells as number Call 5CHasSpell @valid = HasSpells