Skip to content
This repository was archived by the owner on May 13, 2020. It is now read-only.
This repository was archived by the owner on May 13, 2020. It is now read-only.

Can't specify two function in story config #12

@Yaasu

Description

@Yaasu

So, i tried to use custom items and specify a death passage, but i can't have both working at the same time.
so, if code look like this

window.config = { 
	"items": [
        {
            "tag": "bow",
            "name": "Arc",
            "x": 3 , "y": 93
        },
		 {
            "tag": "hunt",
            "name": "Armure de chasseur",
            "x": 10, "y": 3
        },
			{
            "tag": "pirate",
            "name": "Armure de pirate",
            "x": 1, "y": 10
        },
		{
            "tag": "sabre",
            "name": "Sabre",
            "x": 15, "y": 108
        },
		{
            "tag": "stick",
            "name": "Bâton de shaman",
            "x": 3, "y": 110
        },
		{
            "tag": "shaman",
            "name": "Manteau de shaman",
            "x": 6, "y": 4
        },
			]
},
	{	
		deadMessage: "Vous êtes mort"
		deathPassage: "mort", 
};

story is loaded, custom items work but the deadMessage and deathPassage are not set to what i want them to be set.
I also tried to set it by calling it in the first passage with

<% story.config.deathPassage = "mort"; story.config.deadMessage = "Vous êtes mort" %> 

but then that only made the deadMessage working.
I know that i am probably making a mistake, but i don't know where, can someone help me ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions