User talk:Habreno/Wizardry

Python Version
def main:
 * Wiz = input("Wizardry Value: ")
 * try:
 * wiz = int(Wiz)
 * except:
 * wiz = romantodec(Wiz)
 * wiz = wiz*25
 * if wiz == 1:
 * print("This item grants the wearer", wiz ,"spellpoint. Favored Souls and Sorcerers gain up to double spellpoints from items.")
 * else:
 * print("This item grants the wearer", wiz ,"spellpoints. Favored Souls and Sorcerers gain up to double spellpoints from items.")

Note: The romantodec function isn't copied here for space reasons; it basically converts the roman numeral to an integer.

For those unfamiliar with Python, if/else statements (actually if/elif/else statements, but if/else is a simpler form) check the condition on the if- if it's true, then the code under the if is executed. If it's not true, the else is executed. (in if/elif/else, if the initial if fails, elifs are then checked in the order they're listed, top to bottom, and if all those fail, then the else is executed)

In the case of try/except statements, they have the try be executed, and if an error happens, then the excepts are tried. You can have multiple excepts with various conditions (similar to elifs), which each do various different things. A generic except acts as an else- if the try and the specific excepts fail, then the generic except is carried out. Try/excepts are basically another form of if/elif/else statements.

So the main thing I don't know of in Wikicode are if/else and try/except statements, and I'm not sure what a good resource to look for them is. Habreno (Contribs • Message • Email ) 17:26, February 15, 2016 (EST)

Insightful Wizardry
Should this be added to the template? If it was added, it would have to be a second parameter (string type denoting the type of bonus seems the most likely and allows for future expansion) which might cause some issues with old gear. Thoughts? Habreno (Contribs • Message • Email ) 02:51, February 29, 2016 (EST)
 * Yes, we need support for insightful wizardry and possibly quality wizardry; LGS might have additional types. One way would be to introduce another parameter for bonus type. Another option would be to call to create a T:Sp, similar to Template:Hp. It could use the following syntax: Sp|Wizardry|I or Sp|Magi or Sp|Wizardry|137 or Sp|Insightful Wizardry|66 or Sp|Power Drain or Sp|Elemental Spell Power, etc. -- Cru121 (Contribs • Message • Email ) 04:46, February 29, 2016 (EST)
 * I'll work on it. Once again, will be trying to keep compatibility with most of the current pages so the default will have to accept a blank. This part may be harder. Habreno (Contribs • Message • Email ) 06:34, February 29, 2016 (EST)
 * It's "sorta" working. It just looks bad and the conversions aren't working properly. Others are welcome to fix it if it's an easy fix I'm just missing. Going to sleep. As a note, there's a more basic version clearly marked in the revisions if you simply want the simpler version. Habreno (Contribs • Message • Email ) 07:11, February 29, 2016 (EST)

Integer to Roman Numeral Conversion
All items that currently show up in the various Wizardry tiers.
 * Item:Helm of the Flame
 * Item:Ring of the Archbishop
 * Item:Venn's Necklace
 * Item:Aberrant Robe
 * Item:Adherent's Pendant
 * Item:Crimson Gemstone
 * Item:Girdle of Faith
 * Item:Globe of Imperial Blood (historic)
 * Item:Ironweave Robe
 * Item:Molb's Fist
 * Item:Morleth's Docent
 * Item:Ring of Master Artifice (All tiers on main page and all level-specific pages)
 * Item:Ring of Master Artifice (Level 3)
 * Item:Ring of Master Artifice (Level 7)
 * Item:Ring of Master Artifice (Level 11)
 * Item:Ring of Master Artifice (Level 15)
 * Item:Epic Ring of Master Artifice
 * Item:Strinati's Hand Cannon
 * Item:Beignin's Breath
 * Item:Dragoncrafted Docent
 * Item:Dragoncrafted Plate Armor
 * Item:Dragoncrafted Robe
 * Item:Shard of Vollun
 * Item:Torc of Prince Raiyum-de II
 * Item:Anathema
 * Item:Amara's Belt
 * Item:Calitomes' Sash
 * Item:Cloth of the Faithful
 * Item:Dragontouched Armor (Tempest Rune of Wizardry)
 * Item:Epic Adherent's Pendant
 * Item:Epic Ironweave Robe
 * Item:Epic Torc of Prince Raiyum-de II
 * Item:Lorrik's Necklace
 * Item:Mysterious Bauble
 * Item:Raiment of the Fervent
 * Item:Shiona's Pendant
 * Item:Singed Belt
 * Item:Smedgar's Necklace
 * Item:Telvi's Sash
 * Item:Thamor's Belt
 * Item:Tokala's Belt
 * Item:Torin's Choker
 * Item:Ring of Thelis
 * Item:Sage's Sash (Level 15)
 * Item:War Wizard's Robes
 * Item:Seal of House Szind
 * Item:Spidersilk Robes
 * Item:Stolen Necklace (Epic tier on main page and epic level-specific pages)
 * Item:Stolen Necklace (Level 25)
 * Item:Stolen Necklace (Level 26)
 * Item:Stolen Necklace (Level 27)
 * Item:Prismatic Cloak, Blue
 * Item:Prismatic Cloak, Green
 * Item:Prismatic Cloak, Grey
 * Item:Prismatic Cloak, Red
 * Item:Prismatic Cloak, Violet (Generic pages specifically. These could probably use a general rewrite but that's not in the scope of this list)
 * Item:Sage's Sash (Level 26)

Properly Applying New Template
These may have to be done by hand.
 * Item:Docent of Insight
 * Item:Epic Docent of Insight
 * Item:Boundless
 * Item:Legendary Boundless
 * Item:Celestial Oak
 * Item:Robe of Insight
 * Item:Epic Robe of Insight

Pages That Don't Exist
These can probably be ignored unless it messes things up with the bot.
 * Item:Prismatic Cloak, Red (Level 17) - Uncreated.
 * Item:Prismatic Cloak, Violet (Level 17) - Uncreated. Note: Other specific versions not listed here are accurate and do not need to be updated.
 * Item:Shadowmail (Level 17) - Also uncreated; this is the only version of this page that doesn't exist.