Skill Pre-requisite
This should be easier than I'm making it. I'm trying to create a special ability that requires proficiency (or expertise) in a skill (in this case, Stealth). What do I put in the pre-requisites script to check for that?
|
You're looking for hero.tagis[ProfSkill.skStealth] <> 0. You may have to also look for hero.tagis[ProfDouble.skStealth] <> 0. I feel like I've seen it before where the Hero only has one of those, so test for both. It's been a minute since I did a pre-req so I don't know off the top of my head how to plug that in. But if you can find something with a pre-existing pre-req, it'll give you some direction.
|
Thanks! That put me on the right path. It needed to go in Expr-reqs, not Pre-reqs. I'm not sure how to OR hero.tagis[ProfDouble.skStealth] <> 0, but at least this is forward progress.
|
|
So I put something like this in the eval script:
Code:
var SkillSt as number Code:
SkillSt > 0 |
No you can do all that in the Expr-req script. Variables don't carry from one script to another.
|
All of that won't fit in Expr-req though...?
|
Correction: Do it in eval rules. Treat it like a regular script, but at the end, you're targeting "@valid = 1"
So: if (SkillSt > 0) then @valid = 1 endif |
In eval rules, the error is "Invalid use of reserved word 'if' in script."
|
The full thing in the eval rule should be something like this:
Code:
|
All times are GMT -8. The time now is 10:54 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.