12. Misc.

Misc Functions

12.1 TARBSengine.contributors()

Outputs the people who helped work on the project and their roles. Information about testers and becoming a tester is also outputted. (To become a tester, please email me @ stautonico@gmail.com or you can contact me via discord: Stevie1da#0001)

12.2 TARBSengine.getinput

getinput(prompt)

getinput is used to make logging and debugging much simpler. The only required argument is prompt. Prompt does the same as entering a parameter in the input() function. The only difference is that the getinput function automatically returns debug output and logs the input.

Usage example:

user = getinput("Which direction do you want to go?: ")
# User input: West
# DEBUG:root: 11:27:32: User input: West

12.3 enable_default_output

The default output is the text that is displayed after an action is preformed. This default output is used as a template or a filler so you don't have to manually program outputs for every function. You are not forced to use the default output, it is disabled by default.

Usage example:

TARBSengine.use_default_output = True
super_shield= TARBSBeta.Shield("Super Shield", 10)
player.add_item(super_shield, 1)
player.equip_shield(super_shield)
# Equipped shield: Super Shield

Last updated