Twine Version: 2 online
Story Format: SC 2.31
Good morning, everybody!
I am working on prototype for a game which promotes team diversity: At the beginning, player can choose 6 out of 12 randomly generated co-workers (different in age, qualification, sex, origin, languages, etc), and then sends a subset of these 6 NPC into different missions.
I was wondering, if HiEv’s UInv could save me a lot of work, but I figured I ask for advice before starting to code.
According to logic of inventory systems, hiring process at the start would be a “shop”, and selected/bought npcs would constitute team / go into bag.
Can this work?
If yes, could you help me on how generation of npc on random basis? NPC should have different names, ages, qualifications, origins etc. So I thought I pick random information from arrays in StoryInit, e.g.:
<<set $formalEducation to ["vocational", "elementary", "secondary", "bachelor", "master", "phd"]>>
<<set $origin to ["USA", "France", "Germany", "UK", "Russia"]>>
<<set $usMaleNames to ["James","John","Robert","Linda","William","David","Richard","Joseph","Thomas","Charles"]>>
<<set $usFemaleNames to ["Mary","Patricia","Jennifer","Linda","Elizabeth","Barbara","Susan","Jessica","Sarah","Karen"]>>
<<set $usSurnames to ["SMITH","JOHNSON","WILLIAMS","BROWN","DAVIS","MILLER","WILSON","MOORE","TAYLOR","ANDERSON","THOMAS","JACKSON"]>>
// more arrays for other origins, languages, etc
Can I create NPCs on random basis with UInv?
Thank you