intficpy/ifp_game.py
def addEvent(self, name, priority, text=None, style=None):
        """
        Add an event to the current turn

        Raises ValueError if an event of the specified name is already defined
        for this turn
        """
        if name in self.next_events:
            raise ValueError(
                f"Cannot add event with name '{name}': "
                "Name is already used for current turn."
            )
        self.next_events[name] = IFPEvent(self, priority, text, style)

        Add an event to the current turn

        Raises ValueError if an event of the specified name is already defined
        for this turn
        
Add an event to the current turn
Raises ValueError if an event of the specified name is already defined
for this turn
Add an event to the current turn Raises ValueError if an event of the specified name is already defined for this turn
def addEvent(self, name, priority, text=None, style=None):
        if name in self.next_events:
            raise ValueError(
                f"Cannot add event with name '{name}': "
                "Name is already used for current turn."
            )
        self.next_events[name] = IFPEvent(self, priority, text, style)
def addEvent ( self , name , priority , text = None , style = None ) : if name in self . next_events : raise ValueError ( f"Cannot add event with name '{name}': " "Name is already used for current turn." ) self . next_events [ name ] = IFPEvent ( self , priority , text , style )
Add an event to the current turn
Raises ValueError if an event of the specified name is already defined
for this turn
Add an event to the current turn Raises ValueError if an event of the specified name is already defined for this turn
"""
        Add an event to the current turn

        Raises ValueError if an event of the specified name is already defined
        for this turn
        """
self
name
priority
text
style