Players can now have predefined rules set for them. Use the following commands in an event script to activate and set these rules:
# Activate the forced rules
ChallengeModes.use_forced_rules(true)
# Set the desired rules
ChallengeModes.set_forced_rules([ :PERMAFAINT, :ONE_CAPTURE, :SHINY_CLAUSE, :DUPS_CLAUSE, :FORCE_NICKNAME, :FORCE_SET_BATTLES, :NO_TRAINER_BATTLE_ITEMS])
# Start the challenge mode
ChallengeModes.start