Skip to main content

Allow User to Change Slots

  1. Create an iron python script for the game's Custom Icon event with these lines. Check "Prompt for variable values" and allow user access.
ThisService.Slots = int(ThisService.Variables["CustomSlots"]);
ThisService.Save();
ThisService.Configure();
  1. Create a new variable named "CustomSlots". In the variable settings tab check "Script parameter" and "Save script parameter value".

  2. Allow user access. Set the type to NumericTextBox.

  3. With that your user should be able to see the icon in the service home page to change the slots.