Posts

Narrative Development Environment

Image
ledger: holds features and their values script: sets or changes the features of a ledger or their values scenario: combination of ledgers and their scripts world: describes the totality of scenarios or some subset The Narrative Development Environment is the software editor of the Character ledger, the Environmental ledger and the Event script that, together, describe a Scenario state. The output of the Narrative Development Environment is one or more Scenario states of some world.

First Post: Personality Based Simulator

Image
The initial python program, written with Pydroid3, outputted a string (either Jimmy was insulting or Jimmy wasn't insulting) and an associated probability of the string's occurrence. Here, Jimmy beat the odds and became insulting. The final version includes an environmental modifier, Jimmy's stress level. In this output, the stress modifier can lower or raise the base probability of the string occurrence. #The Code import random  from itertools import chain action_score1= random.randint(1,5) action1="insulting others" agent_name= "Jimmy" stress= random.randint(-10,10)/10 stress_modifier= stress*0.2 def action_probability(score):     match(score):         case(1):             return 0.1         case(2):             return 0.2         case(3):             return 0.5         case(4):             return 0.6         case(5):             return 0.8 def action_probability_mod(score):     match(score):         case(1):             return 0.1+(stress*0.1)