#๐Ÿ”’ How do i add a percentage to each int in a dictionary?

13 messages ยท Page 1 of 1 (latest)

twilit void
#

Im pretty new and im making a game and i need to change ints in a dic based of which class you have this is my attempt at doing so.
when i run the code it just makes the stats normal without changing anything can i have some help please.

code: https://paste.pythondiscord.com/M5DZYMERGGPX4RJYNZ5F34JRIE

pallid estuaryBOT
pallid estuaryBOT
#

@twilit void

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

formal moon
#

can you rephrase ?

#

For example, show what you have and what you want

pallid estuaryBOT
#

:white_check_mark: Your 3.14 eval job has completed with return code 0.

001 | 5.0
002 | 10 %
formal moon
#

ok so if I understood correctly your problem, you try to change the entries in "changeable_stats" and "normal_stats" based on an increase or decrease percentage

#

uhm, ok so you are saving userdata but you are modifying basestats

twilit void
#

thanks for answering : )

#

!close

pallid estuaryBOT
#
Python help channel closed with !close

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.