Import simplifié #61

Closed
opened 2021-11-17 14:28:51 +01:00 by gauche.c · 5 comments
gauche.c commented 2021-11-17 14:28:51 +01:00 (Migrated from gitlab.com)

Bonjour,

Serait il possible de proposer un import de personnage avec un format .json simplifié ?

Le but serait d'utiliser la puissance de ton module pour générer un personnage simplement avec les données importantes, à savoir:

  • Nom
  • La liste des noms de compétences/sorts/talents/équipements, leurs valeurs/quantités
    Donnée qu'on peut compléter avec d'autres optionnelles comme l'expérience, les détails, corruptions, destinées ...

Pour récupérer les informations manquantes, la fonction pourrait les récupérer sur ton module, sur système ou Foundry.
Si possible, garder le même format .json de la fiche de personnage de Foundry.

J'ai deja travaillé sur un format, voici un exemple:

{"name":"New Actor","type":"character","data":{"characteristics":{"ws":{"initial":30,"advances":0},"bs":{"initial":38,"advances":0},"s":{"initial":27,"advances":0},"t":{"initial":35,"advances":4},"i":{"initial":31,"advances":0},"ag":{"initial":38,"advances":0},"dex":{"initial":31,"advances":0},"int":{"initial":29,"advances":0},"wp":{"initial":35,"advances":1},"fel":{"initial":33,"advances":0}},"status":{"fate":{"value":4},"fortune":{"value":4},"resilience":{"value":2},"resolve":{"value":2}},"details":{"species":{"value":"human"},"move":{"value":4},"age":{"value":20},"eyecolour":{"value":"Gris pâle"},"haircolour":{"value":"Noir"},"height":{"value":180},"motivation":{"value":""},"personal-ambitions":{"short-term":"","long-term":""}}},"items":[{"name":"Art","type":"skill","data":{"advances":{"value":0}}},{"name":"Athlétisme","type":"skill","data":{"advances":{"value":7}}},{"name":"Calme","type":"skill","data":{"advances":{"value":7}}},{"name":"Charme","type":"skill","data":{"advances":{"value":5}}},{"name":"Chevaucher","type":"skill","data":{"advances":{"value":0}}},{"name":"Commandement","type":"skill","data":{"advances":{"value":3}}},{"name":"Conduite d'attelage","type":"skill","data":{"advances":{"value":0}}},{"name":"Corps à corps","type":"skill","data":{"advances":{"value":0}}},{"name":"Discrétion","type":"skill","data":{"advances":{"value":0}}},{"name":"Divertissement","type":"skill","data":{"advances":{"value":0}}},{"name":"Emprise sur les animaux","type":"skill","data":{"advances":{"value":0}}},{"name":"Escalade","type":"skill","data":{"advances":{"value":0}}},{"name":"Esquive","type":"skill","data":{"advances":{"value":0}}},{"name":"Intimidation","type":"skill","data":{"advances":{"value":0}}},{"name":"Intuition","type":"skill","data":{"advances":{"value":6}}},{"name":"Marchandage","type":"skill","data":{"advances":{"value":5}}},{"name":"Orientation","type":"skill","data":{"advances":{"value":0}}},{"name":"Pari","type":"skill","data":{"advances":{"value":0}}},{"name":"Perception","type":"skill","data":{"advances":{"value":5}}},{"name":"Ragot","type":"skill","data":{"advances":{"value":3}}},{"name":"Ramer","type":"skill","data":{"advances":{"value":0}}},{"name":"Résistance","type":"skill","data":{"advances":{"value":3}}},{"name":"Résistance à l'alcool","type":"skill","data":{"advances":{"value":0}}},{"name":"Subornation","type":"skill","data":{"advances":{"value":0}}},{"name":"Survie en extérieur","type":"skill","data":{"advances":{"value":0}}},{"name":"Langue (Wastelander)","type":"skill","data":{"advances":{"value":5}}},{"name":"Prière","type":"skill","data":{"advances":{"value":4}}},{"name":"Recherche","type":"skill","data":{"advances":{"value":5}}},{"name":"Savoir (Reikland)","type":"skill","data":{"advances":{"value":3}}},{"name":"Savoir (Théologie)","type":"skill","data":{"advances":{"value":5}}},{"name":"Destinée","type":"talent","data":{"advances":{"value":1}}},{"name":"Perspicace","type":"talent","data":{"advances":{"value":1}}},{"name":"Sixième sens","type":"talent","data":{"advances":{"value":1}}},{"name":"Affinité avec les animaux","type":"talent","data":{"advances":{"value":1}}},{"name":"Bonnes jambes","type":"talent","data":{"advances":{"value":1}}},{"name":"Béni (Ranald)","type":"talent","data":{"advances":{"value":1}}},{"name":"Affable","type":"talent","data":{"advances":{"value":1}}},{"name":"Bénédiction de Chance","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Charisme","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Conscience","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Finesse","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Protection","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Vivacité","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Initié","type":"career","data":{"careergroup":{"value":"Prêtre"},"current":{"value":true},"skills":["Athlétisme","Calme","Intuition","Perception","Résistance","Prière","Recherche","Savoir (Théologie)"],"talents":["Affable","Béni (Ranald)","Lire/Écrire","Visions sacrées"]}}]}

D'ailleurs, ce lien permet de générer d'autres exemples de personnage aléatoirement généré au format json simplifié: https://script.google.com/macros/s/AKfycbwjQfp1n_cQCohkYG1oyDkUvIWWt1SXWfDGnsL_yWK7BS4FJUYAxoXD9ED9gu9z8_Axtg/exec?foundryExport=random

Bonjour, Serait il possible de proposer un import de personnage avec un format .json simplifié ? Le but serait d'utiliser la puissance de ton module pour générer un personnage simplement avec les données importantes, à savoir: - Nom - La liste des noms de compétences/sorts/talents/équipements, leurs valeurs/quantités Donnée qu'on peut compléter avec d'autres optionnelles comme l'expérience, les détails, corruptions, destinées ... Pour récupérer les informations manquantes, la fonction pourrait les récupérer sur ton module, sur système ou Foundry. Si possible, garder le même format .json de la fiche de personnage de Foundry. J'ai deja travaillé sur un format, voici un exemple: `{"name":"New Actor","type":"character","data":{"characteristics":{"ws":{"initial":30,"advances":0},"bs":{"initial":38,"advances":0},"s":{"initial":27,"advances":0},"t":{"initial":35,"advances":4},"i":{"initial":31,"advances":0},"ag":{"initial":38,"advances":0},"dex":{"initial":31,"advances":0},"int":{"initial":29,"advances":0},"wp":{"initial":35,"advances":1},"fel":{"initial":33,"advances":0}},"status":{"fate":{"value":4},"fortune":{"value":4},"resilience":{"value":2},"resolve":{"value":2}},"details":{"species":{"value":"human"},"move":{"value":4},"age":{"value":20},"eyecolour":{"value":"Gris pâle"},"haircolour":{"value":"Noir"},"height":{"value":180},"motivation":{"value":""},"personal-ambitions":{"short-term":"","long-term":""}}},"items":[{"name":"Art","type":"skill","data":{"advances":{"value":0}}},{"name":"Athlétisme","type":"skill","data":{"advances":{"value":7}}},{"name":"Calme","type":"skill","data":{"advances":{"value":7}}},{"name":"Charme","type":"skill","data":{"advances":{"value":5}}},{"name":"Chevaucher","type":"skill","data":{"advances":{"value":0}}},{"name":"Commandement","type":"skill","data":{"advances":{"value":3}}},{"name":"Conduite d'attelage","type":"skill","data":{"advances":{"value":0}}},{"name":"Corps à corps","type":"skill","data":{"advances":{"value":0}}},{"name":"Discrétion","type":"skill","data":{"advances":{"value":0}}},{"name":"Divertissement","type":"skill","data":{"advances":{"value":0}}},{"name":"Emprise sur les animaux","type":"skill","data":{"advances":{"value":0}}},{"name":"Escalade","type":"skill","data":{"advances":{"value":0}}},{"name":"Esquive","type":"skill","data":{"advances":{"value":0}}},{"name":"Intimidation","type":"skill","data":{"advances":{"value":0}}},{"name":"Intuition","type":"skill","data":{"advances":{"value":6}}},{"name":"Marchandage","type":"skill","data":{"advances":{"value":5}}},{"name":"Orientation","type":"skill","data":{"advances":{"value":0}}},{"name":"Pari","type":"skill","data":{"advances":{"value":0}}},{"name":"Perception","type":"skill","data":{"advances":{"value":5}}},{"name":"Ragot","type":"skill","data":{"advances":{"value":3}}},{"name":"Ramer","type":"skill","data":{"advances":{"value":0}}},{"name":"Résistance","type":"skill","data":{"advances":{"value":3}}},{"name":"Résistance à l'alcool","type":"skill","data":{"advances":{"value":0}}},{"name":"Subornation","type":"skill","data":{"advances":{"value":0}}},{"name":"Survie en extérieur","type":"skill","data":{"advances":{"value":0}}},{"name":"Langue (Wastelander)","type":"skill","data":{"advances":{"value":5}}},{"name":"Prière","type":"skill","data":{"advances":{"value":4}}},{"name":"Recherche","type":"skill","data":{"advances":{"value":5}}},{"name":"Savoir (Reikland)","type":"skill","data":{"advances":{"value":3}}},{"name":"Savoir (Théologie)","type":"skill","data":{"advances":{"value":5}}},{"name":"Destinée","type":"talent","data":{"advances":{"value":1}}},{"name":"Perspicace","type":"talent","data":{"advances":{"value":1}}},{"name":"Sixième sens","type":"talent","data":{"advances":{"value":1}}},{"name":"Affinité avec les animaux","type":"talent","data":{"advances":{"value":1}}},{"name":"Bonnes jambes","type":"talent","data":{"advances":{"value":1}}},{"name":"Béni (Ranald)","type":"talent","data":{"advances":{"value":1}}},{"name":"Affable","type":"talent","data":{"advances":{"value":1}}},{"name":"Bénédiction de Chance","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Charisme","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Conscience","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Finesse","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Protection","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Bénédiction de Vivacité","type":"prayer","data":{"type":{"value":"blessing"}}},{"name":"Initié","type":"career","data":{"careergroup":{"value":"Prêtre"},"current":{"value":true},"skills":["Athlétisme","Calme","Intuition","Perception","Résistance","Prière","Recherche","Savoir (Théologie)"],"talents":["Affable","Béni (Ranald)","Lire/Écrire","Visions sacrées"]}}]}` D'ailleurs, ce lien permet de générer d'autres exemples de personnage aléatoirement généré au format json simplifié: https://script.google.com/macros/s/AKfycbwjQfp1n_cQCohkYG1oyDkUvIWWt1SXWfDGnsL_yWK7BS4FJUYAxoXD9ED9gu9z8_Axtg/exec?foundryExport=random
gauche.c commented 2021-11-17 14:33:00 +01:00 (Migrated from gitlab.com)

changed the description

changed the description
gauche.c commented 2021-11-17 14:34:01 +01:00 (Migrated from gitlab.com)

changed the description

changed the description
gauche.c commented 2021-11-17 14:34:34 +01:00 (Migrated from gitlab.com)

changed the description

changed the description
gauche.c commented 2021-11-17 14:36:24 +01:00 (Migrated from gitlab.com)

changed the description

changed the description
gauche.c commented 2021-11-17 14:38:33 +01:00 (Migrated from gitlab.com)

changed the description

changed the description
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: public/foundryvtt-wh4-lang-fr-fr#61
No description provided.