Announcement

Collapse
No announcement yet.

Trouble with Adding Resistances

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trouble with Adding Resistances

    On the item editor i'm trying to make indirect effects that add different resistant levels when the item is equipped - but i'm having some trouble.

    The default system script "Add Resist":

    Data: Load Indirect Effect Info
    Data: Variable [Target Resist W] = [Target Resist W] + [Indirect Rate]
    Data: Variable [Target Resist M] = [Target Resist M] + [Indirect Rate]

    When i use this it seems to increase the resistant levels of both the monsters and the party members, which muffs my whole battle system all to hell. So in order to try and fix this, i tried making my own script to caculate resist:

    Script Branch: Condition: Flag [Side] Off
    Data: Load Indirect Info
    Data: Variable: [Target Resist W] = [Target Resist W] + [Indirect: Resist W]
    Data: Variable: [Target Resist M] = [Target Resist M] + [Indirect: Resist M]
    Script: Conditoin End

    This seems to work until i load from a saved game file, then it's as if the resistances cease to exist, and the only way i can get them to show back up is to re-equip all of the items everytime i start a new game. This would get old really fast for the player.

    If someone could tell me what i'm doing wrong and help me to write a script for the item editor to add resists when an item is equipped it would help me a lot. I need one that adds the resistances i set in the indirect effect to only the person who has the actual item equipped - and doesn't reset evertime a new game is started.

    #2
    Re: Trouble with Adding Resistances

    Well not sure if this is another bug in the game or not.

    But another way to do this would to be to add an indirect effect to the item, then in that script check for equipped armor (using member info load which may have already been called before that).

    then do this

    Data Var [Item Number] = [Helmet Equipped]
    Item Info Load
    Data Var [Indirect Effect] = [Item:EquipIndir]
    Indirect Effect Info Load

    Then whats in the script, repeat this for Armor Equipped and Shield Equipped.
    はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
    http://www.thetruecoolness.com/

    5198-2124-7210 Smash

    Comment


      #3
      Re: Trouble with Adding Resistances

      Does doing it this way mean i'll have to make a seperate indirect effect for each armor piece or can i have the same indirect effect check for multiple armor that's equipped as long as the property number and resistance value are the same for multiple pieces? Because i have 80 armor pieces that add different property resistances as it stands now, and making 80 different indirect effects is going to suck.
      Last edited by Jeremy; 09-19-2006, 12:34 AM.

      Comment

      Working...
      X