#๐Ÿ”’ Status effects management for simple cli turn based combat game

11 messages ยท Page 1 of 1 (latest)

sonic zodiacBOT
#

@uneven kettle

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.

strange timber
#

!paste

sonic zodiacBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

uneven kettle
# strange timber !paste

yea, i did, but they goofed up their automod and it deletes paste links -_-, i have big detailed desc, i just have to wait for mods to give it bak

viscid seal
#

continuation of https://discord.com/channels/267624335836053506/1309240802983018518 if you want context
my code: https://paste.pythondiscord.com/467Q
here, i somehow want to implement effects
since its a turned based game it the effects lasts for x turns
i dont know how to trigger it or apply it at all

lets say we give a 55% damage shield for 2 turns to foo
how do i make sure this gets applied when foo gets attacked?
how do i store it?
there has to be a name, turns before it expires, and the actual functionality

i was thinking of making an Effect class which has special made up dunders for every event in the game which do nothing
then you instantiate the object and add actual functionality, the name would just be an attr, and turns would slowly count down in Battlefield.start_battle()'s while loops

uneven kettle
#

thanks you

#

now

#

ill rather make a fresh new one

#

!close

sonic zodiacBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.