• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Creating Robe of Protection +1

Maxxgold

Member
I'm trying to create a simple Robe of Protection +1 and I can't seem to do it. Getting ready to start a game. Can someone please help me out ? :)
 
Open the editor and create a new file.

On the wondrous item tab create a new item, name it Cloak of Protection +1 and give it a Unique ID and click save.

Click the Eval Scripts button, set the timing to Pre-Levels 5000 and enter

Code:
      if (field[gIsEquip].value <> 0) then
        hero.child[ArmorClass].field[tACDeflect].value = maximum(hero.child[ArmorClass].field[tACDeflect].value, 1)
        endif

set your cost and weight, caster level, school, make cure "Can be equipped" is checked. Set your equipment slot to shoulders. Make sure "Appears in Wondrous Items" is checked
Click save, and then click "Test Now" and you should have a functional item
 
AndrewD2 is mostly correct, but I think he might've misread cloak in the place of robe. Robes normally occcupy the "Armor" or "Body" slot
 
Hey guys. I have a few items that I might add, now.
I have a question. For the timing - does the 'Pre-Levels 5000' go in the 'After Scripts:', 'Before Scripts:', or 'Script Name:' field?

Cheers
 
When you click on the Eval Scripts button, there is the main grey window where you post the eval script. The Phase is a dropdown menu in the upper left (it defaults to First, click on it to change it to Pre-Levels), and the Priority is a small field just to the right of that (click there and enter 5000)

Don't worry about the stuff inside the "Timing" button.
 
Back
Top