Jump to content

Assigning a CVAR to an attribute's value?


Recommended Posts

Hello, Im seeing if its possible to set a CVAR to an Attribute's value, something like this:

<Config>
   <append>
      <buff name="buffTestStatTrack" name_key="buffTestStatTrackName" description_key="buffTestStatTrackDesc" icon="ui_game_symbol_add" icon_color="0,255,0">
         <stack_type value="replace"/>
         <duration value="0"/>
         <display_value value="stat_track"/>
         <display_value_key value="{0}"/>

         <effect_group>
            <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar="stat_track" operation="set" value="@attStrength"/>
         </effect_group>
      </buff>
   </append>
</Config>


Test #1) 

I tried using "@attStrength" but it doesnt seem to get the value. Displayed value shows 0.

 

Test #2)

I tried using "#attStrength" but it generates an error. (I thought it might work since I thought attStrength would be a game variable)

Edited by Bladestorm Games (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...