Make a variable hold a value

I need a variable to hold the result of a RandomInRange

Create a scene variable:

  • Right click on your scene
  • select “Scene properties”
  • select “edit scene variables”
  • click on +ADD
  • enter variable name in left side

To modify the value:

  • Right click on “Add an action” in the event editor,
  • choose “Other actions” tab,
  • expand the “Variables” label,
  • select “Value of a scene variable”,
    – choose your variable,
    – choose set
    – make the value RandomInRange(x,y), where x and y are the range limits.