Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Shadowrun (http://forums.wolflair.com/forumdisplay.php?f=75)
-   -   How do I edit the scripts? (http://forums.wolflair.com/showthread.php?t=13629)

cryptoknight August 4th, 2011 02:57 PM

How do I edit the scripts?
 
I'm trying to add Glamor to the list of qualities... and I found a script in Kenisics that almost works

Code:


      ~if we're disabled, just get out now
      doneif (activated = 0)
     
      ~REMINDER: Add to Judge Intentions once that's been added
     
      ~find all our social skills and add our rating as a dicepool modifier
      foreach pick in hero from SkillAct where "SkillCat.Social" 
        perform eachpick.field[DicePool].modify[+,field[trtFinal].value,""]
        nexteach

How do I reference the name of the skill? Glamor adds +3 to every social skill but Intimidate... I'd think I could change

Code:

      foreach pick in hero from SkillAct where "SkillCat.Social"  AND SkillAct.Id <> "skaIntim"
but that doesn't seem to work.

Lawful_g August 4th, 2011 04:02 PM

Try this maybe?

foreach pick in hero from SkillAct where "SkillCat.Social & !SkillAct.skaIntim"

cryptoknight August 4th, 2011 04:27 PM

Thanks! to me it looked like SQL so I kept trying to treat it as such

cryptoknight August 5th, 2011 08:15 PM

How do I find out what the names of all the attributes are?

For instance, I was working on creating a Night One as well... and I can figure out how to bootstrap an Allergy onto the race, but I don't see how that I can specify that it's a mild,common allergy to sunlight. I thought it might be a tag, or a field on the bootstrapped quality, but I don't know the property name for the severity, commonality, or what the race is allergic to.

Sorry if I missed something, is there a document that spells out the data structure for the SR4 system? Or a way to figure it out from the editor?

cryptoknight August 6th, 2011 06:33 AM

Ah learned yet another trick... I opened up a character I had made allergic to sunlight in notepad, and found the properties... :) One more race down. hehe


All times are GMT -8. The time now is 03:36 PM.

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