Started the generation process
This commit is contained in:
parent
3ed2c2ddde
commit
ed4498884b
|
|
@ -0,0 +1,76 @@
|
|||
# Generate skills sections and others from a file, on the long run, it should be able to generate the whole sheet
|
||||
|
||||
import argparse, sys, os
|
||||
|
||||
#
|
||||
# <input type="radio" name="attr_tab" class="sheet-tab sheet-tab2" value="2" title="Magie" /><span></span>
|
||||
# <input type="radio" name="attr_tab" class="sheet-tab sheet-tab3" value="3" title="Combat" /><span></span>
|
||||
|
||||
def gen_tab(name,tabnb,checked=False):
|
||||
check=""
|
||||
if checked:
|
||||
check='checked="checked"'
|
||||
return '<input type="radio" name="attr_tab" class="sheet-tab sheet-tab{nb}" value="{nb}" title="{name}" {checked} /><span></span>'.format(name=name,nb=tabnb,checked=check)
|
||||
|
||||
|
||||
# <div class="sheet-tab-content sheet-tab1">
|
||||
# <div class='sheet-col'>
|
||||
# <input type="radio" name="secondary_skills_tab" class="small_tab secondary_skills_tab1" checked="checked" value="1" title="Générales" />
|
||||
# <input type="radio" name="secondary_skills_tab" class="small_tab secondary_skills_tab2" value="2" title="Sociales" />
|
||||
# <input type="radio" name="secondary_skills_tab" class="small_tab secondary_skills_tab3" value="3" title="Intellectuelles" />
|
||||
# <div class="sheet-tab-content sheet-secondary_skills_tab1">
|
||||
def gen_sectab(name):
|
||||
pass
|
||||
|
||||
# <!--INTELECTUELLES -->
|
||||
# <h3>Compétences Intellectuelles</h3>
|
||||
# <fieldset class="repeating_intelect-skills">
|
||||
# <input class="sheet-skill_name" type="text" name="attr_intelect_skillname" />
|
||||
# <input type="number" name="attr_intelect_skillcost" title="Coût de la compétence" />
|
||||
# <input type="number" min="-10" max="10" name="attr_intelect_skilllevel" title="Niveau dans la compétence" />
|
||||
# <select class="sheet-skill_select" name="attr_intelect_attribute_select">
|
||||
# <option value="@{base-Force} + @{exal-Force}">For</option>
|
||||
# <option value="@{base-Agilite} + @{exal-Agilite}">Agi</option>
|
||||
# <option value="@{base-Perception} + @{exal-Perception}">Per</option>
|
||||
# <option value="@{base-Charisme} + @{exal-Charisme}">Cha</option>
|
||||
# <option value="@{base-Intelligence} + @{exal-Intelligence}">Int</option>
|
||||
# <option value="@{base-Perception} + @{exal-Perception}">Per</option>
|
||||
# <option value="@{base-Volonte} + @{exal-Volonte}">Vol</option>
|
||||
# <option value="@{base-Psyche} + @{exal-Psyche}">Psy</option>
|
||||
# <option value="@{base-Chance} + @{exal-Chance}">Chn</option>
|
||||
# </select>
|
||||
# <button type='roll' class="sheet-skillbutton" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=@{intelect_skillname}}} {{dice_name=@{dice}}} {{result=[[@{intelect_skilllevel}+(@{intelect_attribute_select})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[@{intelect_skilllevel}+(@{intelect_attribute_select})]]}}"></button>
|
||||
# </fieldset>
|
||||
# </div>
|
||||
|
||||
def gen_repeating(name):
|
||||
pass
|
||||
|
||||
# <!--Fauchage -->
|
||||
# <input class="sheet-skill_name" style="margin-right: 4px;" type="text" name="attr_general_skill_Fauchage" disabled="true" value="Fauchage" />
|
||||
# <input type="number" min="0" value="0" name="attr_skillcost_Fauchage" title="Coût de la compétence" />
|
||||
# <input class="sheet-skill_name" value="0" style="margin-right: 4px;" type="number" min="0" max="10" name="attr_general_skilllevel_Fauchage" title="Niveau dans la compétence" />
|
||||
# <select class="sheet-skill_select" style="margin-right:4px" name="attr_Skill_general_attribute_select_Fauchage">
|
||||
# <option value="@{base-Force} + @{exal-Force}">For</option>
|
||||
# <option value="@{base-Agilite} + @{exal-Agilite}">Agi</option>
|
||||
# <option value="@{base-Perception} + @{exal-Perception}">Per</option>
|
||||
# <option value="@{base-Charisme} + @{exal-Charisme}">Cha</option>
|
||||
# <option value="@{base-Intelligence} + @{exal-Intelligence}">Int</option>
|
||||
# <option value="@{base-Perception} + @{exal-Perception}">Per</option>
|
||||
# <option value="@{base-Volonte} + @{exal-Volonte}">Vol</option>
|
||||
# <option value="@{base-Psyche} + @{exal-Psyche}">Psy</option>
|
||||
# <option value="@{base-Chance} + @{exal-Chance}">Chn</option>
|
||||
# </select>
|
||||
# <button type='roll' class="sheet-skillbutton" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=@{general_skill_Fauchage}}} {{dice_name=@{dice}}} {{result=[[@{general_skilllevel_Fauchage}+(@{Skill_general_attribute_select_Fauchage})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[@{general_skilllevel_Fauchage}+(@{Skill_general_attribute_select_Fauchage})]]}} "></button>
|
||||
# <input type="checkbox" class="sheet-skill_activation" style="margin-right: 4px;" value="1" name="attr_skill_Fauchage_activation" />
|
||||
# <input class="sheet-skill_hidden" value="0" type="number" name="attr_general_effective_Fauchage" />
|
||||
# <br/>
|
||||
|
||||
def gen_technique(name):
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
def parse():
|
||||
pass
|
||||
|
||||
Loading…
Reference in New Issue