Forum rules - please read before posting.

1.85.5 formula set parameter bug need to fix

Adventure Creator version: 1.85.5

Please test the newly added Formula functionality before releasing it.
I had to modify your code to get it to work successfully.

Static\Enums.cs
Line 120:

public enum SetParamMethod { EnteredHere=0, Random=2, CopiedFromGlobalVariable=1, CopiedFromLocalVariable=6, CopiedFromComponentVariable=5, CopiedFromParameter=3, CopiedFromAnimator=4, Formula=7 };

Actions\ActionParamSet.cs
Line 414:

switch (_parameter.parameterType)
{
    case ParameterType.Float:
        floatValue = (float) AdvGame.CalculateFormula (runtimeFormula);
        _parameter.SetValue(floatValue);
        break;

    case ParameterType.Integer:
    case ParameterType.PopUp:
        intValue = (int) AdvGame.CalculateFormula (runtimeFormula);
        _parameter.SetValue(intValue);

Comments

  • edited December 2025

    Quite right, I will do better.

    Apologies for the trouble, and thanks for the report.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.