Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes.
Known Issue: Xatheral has been temporarily disabled while we investigate a bug with Year of the Dragon gift delivery.DDO Forums edit

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!

Template:DDOip DC/testcase1

From DDO wiki
Jump to navigation Jump to search

Checking each Parameter in Isolation[edit]


{{DDOip DC/sandbox|cf=10}}

10:CritFail
15?

{{DDOip DC/sandbox|fl=10}}

10:Fail
1114

{{DDOip DC/sandbox|fu=10}}

10:Fail
1114

{{DDOip DC/sandbox|f=10}}

10:Fail
11?

{{DDOip DC/sandbox|sl=10}}

10:Success
-910

{{DDOip DC/sandbox|su=10}}

10:Success
-910

{{DDOip DC/sandbox|s=10}}

10:Success
?10

{{DDOip DC/sandbox|cs=10}}

10:CritSuccess
?-10

{{DDOip DC/sandbox|fk=10}}

11?

----

{{DDOip DC/sandbox|sk=10}}

?10

Checking Error and No Info Cases[edit]


{{DDOip DC/sandbox}}

?

{{DDOip DC/sandbox|cf=|fl=|fu=|f=|sl=|su=|s=|cs=}}

?

{{DDOip DC/sandbox|cf=anythingnotanumber}}

anythingnotanumber:CritFail
Non-Numerical Input(s)!

{{DDOip DC/sandbox|cf=anythingnotanumber|fl=9|fu=12}}

anythingnotanumber:CritFail; 912:Fail
Non-Numerical Input(s)!

{{DDOip DC/sandbox|s=anythingnotanumber|fl=9|fu=12}}

912:Fail; anythingnotanumber:Success
Non-Numerical Input(s)!

{{DDOip DC/sandbox|f=10|s=5}}

10:Fail; 5:Success
Inconsistent Observations!

{{DDOip DC/sandbox|cs=30|fl=12}}

12:Fail; 30:CritSuccess
Inconsistent Observations!

{{DDOip DC/sandbox|fl=10|s=24}}

Parameter mismatch! Do not use f and s parameters for DCs that can crit!
1114

{{DDOip DC/sandbox|sl=20|f=19}}

Parameter mismatch! Do not use f and s parameters for DCs that can crit!
20

{{DDOip DC/sandbox|cf=20|s=24}}

Parameter mismatch! Do not use f and s parameters for DCs that can crit!
Inconsistent Observations!

{{DDOip DC/sandbox|fl=20|fu=30}}

2030:Fail
Inconsistent Observations!

{{DDOip DC/sandbox|sl=20|su=50}}

2050:Success
Inconsistent Observations!

{{DDOip DC/sandbox|f=20|su=19}}

Parameter mismatch! Do not use f and s parameters for DCs that can crit!
Inconsistent Observations!

{{DDOip DC/sandbox|cf=20|fl=19}}

20:CritFail; 19:Fail
Inconsistent Observations!

{{DDOip DC/sandbox|cs=40|su=45}}

45:Success; 40:CritSuccess
Inconsistent Observations!

Borderline Cases That Correctly Do Not Error[edit]


The |fl= and |fu= parameters are reversible in their usage. The code will not error if upper fail is lower than lower fail.

{{DDOip DC/sandbox|fl=20|fu=18}}

2018:Fail
2122

{{DDOip DC/sandbox|fl=18|fu=20}}

1820:Fail
2122

The same is true for the |sl= and |su= parameters. The code will not error if upper success is lower than lower success.

{{DDOip DC/sandbox|sl=20|su=18}}

2018:Success
118

{{DDOip DC/sandbox|sl=18|su=20}}

1820:Success
118