• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Assigning a CVAR to an attribute's value?

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)

 
Last edited by a moderator:
Back
Top