Allow User to Change Slots

Revision as of 10:15, 6 March 2021 by TCAWiki (talk | contribs) (Created page with "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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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();


Create a new variable named "CustomSlots". In the variable settings tab check "Script parameter" and "Save script parameter value". Allow user access. Set the type to NumericTextBox.

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

Retrieved from "https://help.tcadmin.com/index.php?title=Allow_User_to_Change_Slots&oldid=2377"