So I made players with class and defined them now I would like to make the act as a "party"
Code of class and defined party members:
Code: Select all
init -1 python:
class Player(renpy.store.object):
def __init__(self, name,hp,current_hp, weapon_equip=None, armor_equip=None):
self.name=name
self.hp = hp
self.current_hp = current_hp
self.weapon_equip=weapon_equip
self.armor_equip=armor_equip
player = Player("Dummy",1, 1)Code: Select all
default bob = Player("Bob", 300, 300)
default sam = Player("Sam", 200, 200)
default eva = Player("Eva", 100, 100)Code: Select all
default party_members = [bob, sam, eva]Code: Select all
if party_members.current_hp > 0:
"Do next thing..."