Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
evildmguy
Senior Member
 
Join Date: Nov 2007
Location: Des Moines, IA
Posts: 349

Old April 9th, 2013, 05:45 AM
Quote:
Originally Posted by Mathias View Post
Pickreqs can't have OR - use an exprreq for that instead:

hero.childlives[XXXXX] + hero.childlives[YYYYY] <> 0

I actually never used pickreqs in Shadowrun, Cortex, or Call of Cthulhu. I always used exprreqs or prereqs, becuase I was always generating identity tags and testing for them. That way, you can have things that get disabled, and if they're disabled, you don't forward the "we're here" identity tag to the hero, and any exprreqs looking for that item fail. With a pickreq, you can only test for its presence. You can't test for its current status.
I think I'm finally understanding why you do this. Can you give me an example of how you use them?

Thanks!

edg
evildmguy is offline   #131 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old April 9th, 2013, 07:21 AM
Each component that I will need to use in a prereq has an identity tag:

<identity group="Something"/>

And a script, usually at initialize/2000, or something similarly early, to tell the hero about that tag (but only if it hasn't been disabled):

doneif (activated = 0)
perform forward[Something.?]

Then, exprreqs can be written to look for those tags:

hero.tagis[Something.?] <> 0
Mathias is online now   #132 Reply With Quote
evildmguy
Senior Member
 
Join Date: Nov 2007
Location: Des Moines, IA
Posts: 349

Old April 24th, 2013, 04:48 AM
Quote:
Originally Posted by Mathias View Post
Each component that I will need to use in a prereq has an identity tag:

<identity group="Something"/>

And a script, usually at initialize/2000, or something similarly early, to tell the hero about that tag (but only if it hasn't been disabled):

doneif (activated = 0)
perform forward[Something.?]

Then, exprreqs can be written to look for those tags:

hero.tagis[Something.?] <> 0
Worked beautifully! Thanks!

edg
evildmguy is offline   #133 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:02 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.