Battledome Simulator - Sign Up Thread

#81
@Steven it seems to me like you are just subtracting the power levels directly. IMO that makes things too straightforward and boring.

A way to respect power levels but still add a random element, is to generate random numbers for both of them as their attack, then subtract the random numbers from the power levels until one of them dies. So the power levels would basically be HP.

This means even people at lower power levels can defeat those at higher power levels.

So you could generate a random number between 0 and 100,000 (if needed I could also use their power levels to determine their maximum attack).
Suppose we had two characters James (850,000) and John (400,000).

I wrote a small Python script to simulate a battle between two characters.
Python:
import random
from dataclasses import dataclass

@dataclass
class Character:
  power: int
  name: str

def battle(chars):
  attacks = [0, 0]
  while True:
    attacks = (random.randint(0, 1e5), random.randint(0, 1e5))
    chars[0].power -= attacks[1]
    chars[1].power -= attacks[0]
    if (min(chars, key=lambda x: x.power)).power <= 0:
      break

  print(f"{chars[0].name} has {chars[0].power} power left!\n")
  print(f"{chars[1].name} has {chars[1].power} power left!\n")


john = Character(name="John", power=850000)    # The first character.
james = Character(name="James", power=400000)    # The second character.

battle([john, james])
If you want to use my code, just change the definitions of john and james to the names and powers you actually want.

Here's a screenshot of it running:



I think this would lead to more exciting battles than just subtracting power levels directly.
I can write a script for more interesting battle scenarios if you want. Just tell me how you want it to be calculated, and I would write the script.



What do you guys think?
Im the Host,not the game creater
 

Cinera

๐€๐ฌ๐ฉ๐ข๐ซ๐ข๐ง๐  ๐Œ๐š๐ฌ๐œ๐ก๐ž๐ง๐ง๐ฒ ๐๐ž๐ญ
โ€Ž
#83
with just subtracting the Power level etc
I think this part should be made more dynamic and not be just subtracting power levels.

Something that would be cool is if characters had attack, defense and speed stats, then each round, you randomised an attack score between 0 and the maximum for their attack stat.
Damage taken = attack score - defense stat
The power level would form the HP.

Speed would determine who attacks first (I could also write it to determine when attacks land, so if the speed gap is too big, someone might land multiple attacks before the opponent lands the second).

If we settle on the exact combat system, I could write a script to simulate the battle.
 

Worst

Custom title
โ€Ž
#84
I think this part should be made more dynamic and not be just subtracting power levels.

Something that would be cool is if characters had attack, defense and speed stats, then each round, you randomised an attack score between 0 and the maximum for their attack stat.
Damage taken = attack score - defense stat
The power level would form the HP.

Speed would determine who attacks first (I could also write it to determine when attacks land, so if the speed gap is too big, someone might land multiple attacks before the opponent lands the second).

If we settle on the exact combat system, I could write a script to simulate the battle.
Sure man that's the final goal this is just a test (i'm already at 1k lines of code (cuz i'm using javascript to make it more visual) and i first want to see if people here might like it before going too deep into it and then having people not really using it
(we will do a test with the second version too after this and then if it's a success i'll add more stuff with attacks/interactions based on the characters like if they're BP or BMP )
 

Cinera

๐€๐ฌ๐ฉ๐ข๐ซ๐ข๐ง๐  ๐Œ๐š๐ฌ๐œ๐ก๐ž๐ง๐ง๐ฒ ๐๐ž๐ญ
โ€Ž
#85
Sure man that's the final goal this is just a test (i'm already at 1k lines of code (cuz i'm using javascript to make it more visual) and i first want to see if people here might like it before going too deep into it and then having people not really using it
(we will do a test with the second version too after this and then if it's a success i'll add more stuff with attacks/interactions based on the characters like if they're BP or BMP )
I'm looking forward to it. Do you have a GitHub repository for it?
 

Cinera

๐€๐ฌ๐ฉ๐ข๐ซ๐ข๐ง๐  ๐Œ๐š๐ฌ๐œ๐ก๐ž๐ง๐ง๐ฒ ๐๐ž๐ญ
โ€Ž
#89
#96
Fight 11

Fight 12

Fight 13

Fight 14

Fight 15


Now I can see the images, thanks
 
Top