1 hour ago · 8 min read1611 words · Tech · hide · 0 comments

Hello, loves! Weird hours again, but very interesting spike. Have a look! Tout le monde déteste l’IA. So last night, instead of waking up early, I couldn’t get to sleep, which rarely happens. Nothing really bugging me, just couldn’t drop off, so I got up at 0050 or something and came to the computer. I set out to make a state table for the QuestGiverDenizen. I thought the table should be a dictionary of dictionaries, which is weird but seemed at 0100 to make sense. At first I got nowhere and so I drew a little state diagram om a card, and then sketched a table. With that down on paper, I went back to the code. First, I extracted the action steps that the Denizen takes on each event. This is still the existing code, just with the actions extracted: def interact(self, interactor): self.state = self.state(interactor) return False def seeking(self, interactor): if interactor.has(self.knowledge.quest_item): self.giving_action(interactor) return self.satisfied else:…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.