• 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

Trying to create a unique magical weapon in editor.

Thrantor

Well-known member
I'm trying to duplicate the following item...

This +1 longsword adds +5 to the wielder’s Move Silently checks. Further, anyone dealt a lethal blow by the blade is magically silenced, so that they cannot cry out, making silence an excellent weapon for assassins and others who wish to slay quickly and quietly.
Faint Illusion; CL 5th; Craft Magic Arms and Armor, silence; Price 6,315 gp Cost to Create: 3,315.

So, I've got a gizmo pointing to a longsword. I've got the +1 enhancement. And I'm trying to create a eval script to handle the +5 to stealth(in pathfinder). But I can't figure out how to do an OR in the editor.

I want to do if it's equipped then +5 to the skStealth... But I'm getting an annoying error. Invalid use of a reserved word in script. Script is as follows.

if (field[gIsEquip].value = 1) then
#skillbonus[skStealth] = #skillbonus[skStealth] + 5
endif

if( field[wIs2nd].value = 1) then
#skillbonus[skStealth] = #skillbonus[skStealth] + 5
endif

Please help get me on the right path.
 
Is this for Pathfinder or d20?

You mention both "Move Silently" and "Stealth" - I saw move silently first, so I moved this into the d20 forum, but do you want it in the Pathfinder forum instead? (The answers could differ slightly depending on which game system this is for).
 
if( field[wIs2nd].value = 1) then
#skillbonus[skStealth] = #skillbonus[skStealth] + 5
endif

You have a typo in the above code. You need a space after the if.

Also, your script will add 10 if the weapon is wielded in both hands.
 
You have a typo in the above code. You need a space after the if.

Also, your script will add 10 if the weapon is wielded in both hands.

I thought there was a separate flag for wielded in both hands?

Also, can you think of a way that says "if it's equiped" do this instead of having to check to see if it's wielded in certain hands?

Course, I'm tempted to make it a specific bonus type so that it won't stack like this currently does.
 
Also, can you think of a way that says "if it's equiped" do this instead of having to check to see if it's wielded in certain hands?

Use only a single if statement to test both hands at the same time:
Code:
if (field[grIsEquip].value + field[wIs2nd].value <> 0) then
  #skillbonus[skStealth] += 5
  endif
 
Use only a single if statement to test both hands at the same time:
Code:
if (field[grIsEquip].value + field[wIs2nd].value <> 0) then
  #skillbonus[skStealth] += 5
  endif

Should be "gIsEquip" (extra r), but yes, clearly that works.
 
Oops, sorry, I've been working on Shadowrun so much lately that I forgot that Shadowrun and Pathfinder have slightly different Ids for that field.
 
Oh... thats a fantastic idea. I don't care if it's 1 or 2... just as long as it's not 0. SWEET!. Thanks guys.

Any idea if we are ever going to get logical operators? And, or, nor etc?
 
That is how to do an OR. = 2 would be an AND. Nor would be = 0. !field[gIsEquip].value is also available.

If you need more complexity, you can nest your if statements:
Code:
if (A relationship B) then
  if (C relationship D) then
    ~do something
    endif
  endif
 
That is how to do an OR. = 2 would be an AND. Nor would be = 0. !field[gIsEquip].value is also available.

If you need more complexity, you can nest your if statements:
Code:
if (A relationship B) then
  if (C relationship D) then
    ~do something
    endif
  endif

So, ! works? Cool. Thanks for the help. I'm trying to take the dungeon a day content and make it available to my players and this has helped greatly.
 
Ok, looking at some of the more complex items... How on earth would you make something like the mask of giants? When activated it makes all sorts of changes. Also, how do you quantify wearing from activated?

Is the PDF better than the wiki?
 
Also, how do you quantify wearing from activated
HL has for Items the ability to track if its equipped or if it is Activated. You can also track the number of uses. Setting up the above are all simple options listed on the Thing in the editor.

Once activated you would have to write the Eval script to actually do the changes/stuff its suppose to do. As I have no idea what a "mask of giants" is I can't even give a you a good direction to look.

So far 99% of everything I ever needed a magic item to do I have been able to make it do in the HL editor.
 
Last edited:
Ok, then how can you tell if it's been activated? I haven't seen the field or flag for that yet. And to create an activatable item so that you can activate it in the in-play tab, how do you set that up?

Is there a page in the documentation that talks about this kinda stuff? I haven't found anything that has any examples that you could just use.

The Mask of Giants is in the APG for pathfinder. The description is in HL if you own the APG content. If not, it's probably on d20pfsrd.
 
In the editor, you can use the "New (Copy)" button at the bottom left to make a copy of something and study how it works.
 
In the editor, you can use the "New (Copy)" button at the bottom left to make a copy of something and study how it works.
Is there anyway to see the pathfinder stuff that seems to be hidden in other files somewhere?

OR!!! I'm an idiot and just hadn't pressed the buttons to see how it worked. SWEET! Thanks guys. The ability to lookup a current hireling is awesome.
 
Last edited:
Back
Top