Basicrpg

Latest version: v0.3.4

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.3.4

-Atempted to fix bug created by menu changes where the menus in rooms no longer work.

0.3.3

-menu function now returns the number selected instead of the string selected, by default
-Added the return_tuple flag to the menu function to return the string and number in a tuple should the flag be set to true
-Updated type hints on character objects

0.3.2

-Added the basicrpg.room.set_actions(actions:dict) function
-Added custom actions (functions) within rooms
-These actions, as well as the default "Inspect" and "Leave" actions will be displayed when the player enters the room
-Added the nevermind option within default room actions
-Fixed bug where the itemNotFound error would be called when imported.
-removed testrpg.py in prep for pypi release

0.3.1

-Made the gap between rooms more evident. Now when you enter a new room, it should be easier to tell
-Added clear_screen function in basics
-Added option to clear screen when entering a new room

0.3.0

-Changed the room.set_exit function to room.set_doors, and changed all references to exit/exits into door/doors.This was done to avoid conflict with the builtin python exit() method.

-Added the room.set_contents({"item_name":item:basicrpg.item}) function. This now allows the room to have contents that the character can interact with.

-Added art folder and cover art ASCII image.

0.2.0

-Added menu function under basics
-Added character name to the inventory header
-Changed the URL in setup.py to link to the basicrpglib github
-brought back item objects. I think these will be most used in trade

--Things I tried--
-Began work on shop system, not in development for now tho

Verson 0.2.1 Pre Alpha
-Added room objects
-room(name:str,description:str = None,function = None)
-name: a string name of the room, will display at the top when the room is executed
-description: The room text, string, will display below name when room is executed
-function: (UNTESTED) function will be called when room is executed, None by default cause not needed.
-Room objects have 2 functions
-set_exits(exits:dict{"exit_name" : exit:basicrpg.room})
-Sets the exit or doorway options of the room
-Will display options for exiting the room, each option is the exit_name, and the destination is the probided room object
-execute()
-Will execute the code of the room. This function should only be run on the first room in a sequence of rooms, as travel between rooms should be done with set_exits, which will automatically call execute() on the destination room object that the user has selected. Execute could be neat for teleporting, for example, you could have an event which teleports the player to a new "dungeon" that was not connected to the originating set of rooms by calling exit() on the teleport destination of the "dungeon", maybe the entrance chamber for example.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.