Senior Member
Join Date: Jun 2007
Posts: 273
|
Thank you for your help.
|
#21 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
OK, this works fine now.
Where can I find an overview over d20tags and field etc. I think than I will have less questions. How can I add energy resistance (f.i. cold 20)? How can I add a luck bonus to AC (natural armor and dodge work well, but what's the tag for luck)? |
#22 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
One more question:
I have some feats, where I need a selection. f.i. there is the energy mage feat. You have to decide, which type of energy (fire, cold, acid, sonic, electricity) you want. Is there a possibility to create my own selection menu with this 5 energytypes or have I add this feat 5 times. If it is possible, how can I use this selection for further processing? |
#23 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
In the Editor you can click on "Help for some basic information, and a link to the Wiki.
I would recommend making copies of things that do similar things to what you want and looking at thier pre-req's/eval scripts. To see what fields or tags are on a thing, do this. In the main HL (not the editor) click on the Develop drop down, and "Enable Data File Debugging". Now you can right click on many things and show it's tags and fields. You can also click on Develop -> Floating Info Windows -> Show Hero Tags/Fields or Show Selection Tags/Fields (Selection is needed for things that are otherwise invisible, like Class Helpers and such. |
#24 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
In the Help Files click on "Useful Macros" and you will find that to apply energy Resistance use:
#applyresist[type, bonus] Allows you to add a type of damage resistance to the hero. Using this macro makes sure that the highest resistance value is used, since resistance doesn't stack. ~ We're going to add damage resistance against acid, which is of type xDamRsAcid - we ~ assume that the xDamRsAcid pick has already been bootstrapped. ~ Give us resistance 5 vs. acid #applyresist[xDamRsAcid, 5] You could also find this by copying any of the Rings of Energy Resistance. Luck bonuses are fields rather than tags. Look at the Stone of Good Luck (a Wonderous Item), make a copy of that in the editor and look at the Eval Script. Try and change it so it works for you, but tell me if you have more trouble. |
#25 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
For the Energy Mage feat, I did a similar thing for the Energy Substitution feat. You can make a special for each element that is invisible (not shown on either the specials or charges tab) with a particular User.Whatever tag. Bootrap the specials to the feat, and the feat has a Select From, Restrict To and Custom Expression field.
You want the Custom Expression section, which allows you to search for things with any combination of tags. Have it seach for the User.Whatever tag you have on each of the elements. If you have my files, the Specials are named "xPickXXXX" and the tags are called "User.PickElem". So you could have a Custom Expression for "User.PickElem". As a side note, in case which element chosen matters, each of the specials I made also has a "User.ElemAcid or User.ElemXXXX" you can look for through via Eval scripts and change the feat accordingly. |
#26 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
One final note for Custom Expressions. Just listing somthing looks for things with that tag, you can link multiple things via "&". ALternately you can link with or via"|". Not is indicated by ! placed in front of the tag.
Example: Look for something with User tag A and either B or C, and not D would be User.A & User.B|User.C & !User.D |
#27 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
|
#28 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
|
#29 |
Senior Member
Join Date: Jun 2007
Posts: 273
|
Quote:
Sorry, I didn't found them.... The luckbonus works fine. Thank you. I need to add an racial bonus to attack and damage for the bite attack (or other attacks) Last edited by tkarn; October 10th, 2010 at 11:59 PM. |
|
#30 |
|
|