From 5a5870fbf9ba6755c2f542cdd3c8617ba79014ac Mon Sep 17 00:00:00 2001 From: Marten Mrfc <101009922+Marten-Mrfc@users.noreply.github.com> Date: Mon, 18 Nov 2024 19:58:06 +0100 Subject: [PATCH] [Docs] Added conditional npc showing page --- .../03-conditional-showing.mdx | 40 ++++++++++++++++++ .../04-entity-extension/index.mdx | 1 - .../entity-extension/audience-entity-link.png | Bin 0 -> 11612 bytes 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 documentation/docs/docs/03-creating-stories/04-entity-extension/03-conditional-showing.mdx create mode 100644 documentation/docs/docs/assets/entity-extension/audience-entity-link.png diff --git a/documentation/docs/docs/03-creating-stories/04-entity-extension/03-conditional-showing.mdx b/documentation/docs/docs/03-creating-stories/04-entity-extension/03-conditional-showing.mdx new file mode 100644 index 0000000000..95fa36658b --- /dev/null +++ b/documentation/docs/docs/03-creating-stories/04-entity-extension/03-conditional-showing.mdx @@ -0,0 +1,40 @@ +--- +difficulty: Normal +--- + +import EntrySearch from "@site/src/components/EntrySearch"; +import Image from "@site/src/components/Image"; + +# Conditional NPC showing +:::warning[NPC created] +In this tutorial, we assume you already have created an entity.\ +If you haven't done that yet, please follow the [entity extension tutorial](./index.mdx) first. +::: +In this tutorial, you will learn how to conditionally show an entity using audiences. + +## Adding an audience entry +There are a lot of different audience entries available. For this tutorial, we will use cinematic audience, but all others have similar features. + + +Firstly, click on the + icon in the top right corner of the panel and search for `New Cinematic Audience`. Add it to your page by clicking on the + icon. + + + +## Adding it onto your entity instance. +Now hold your entity instance and drag it onto the `New Cinematic Audience` entry. This will link the audience to the entity. + +It should now look something like this: + +Audience Entity Link + +## Configuring the audience +Inside the audience entry, there are 2 fields: +* **Cinematic**: This is the cinematic that the audience will be linked to. +* **Inverted**: This will invert the audience, meaning that the entity will only be shown when the audience is not met. + +## Result + +:::info[Result] +Result will be later added. +TODO: Add result video +::: \ No newline at end of file diff --git a/documentation/docs/docs/03-creating-stories/04-entity-extension/index.mdx b/documentation/docs/docs/03-creating-stories/04-entity-extension/index.mdx index 220c1554e1..eace3056dd 100644 --- a/documentation/docs/docs/03-creating-stories/04-entity-extension/index.mdx +++ b/documentation/docs/docs/03-creating-stories/04-entity-extension/index.mdx @@ -11,7 +11,6 @@ import EntrySearch from "@site/src/components/EntrySearch"; You must have installed the Entity Extension before starting this tutorial. ::: - Any good storytelling requires other characters to be present in the world. Typewriter has its own entity extension, that allows you to create and control entities like NPCs. diff --git a/documentation/docs/docs/assets/entity-extension/audience-entity-link.png b/documentation/docs/docs/assets/entity-extension/audience-entity-link.png new file mode 100644 index 0000000000000000000000000000000000000000..f2a4437b32fa347fb216a37ce9ce5ca27b55ee55 GIT binary patch literal 11612 zcmb_iXH-+)vJW64AVm<7DnXi5mEL>rUBG|^1VK6>bVRyz5Rhi1caSC!x=8O3h_r-W z5_%`J7ytLJ^}f7M_uUU?W$)RuXJ${%S$lpn6RD@8N=8CY0ssKW)YX&>002CF+@pBs zHjWZ(Cq0h)!E-lIRRB~BGj8H0w`}FLX+X z(#;k9%oS1rWDkpntV_;I-NqvUyv`kJkon@@wFrZI0LjKoa$yGOA3CsG07~ZZIE=D- ziy*l8y#jqsv7#gz=iEhhu-f6llf1V%pdIm`L<+}BO>nZ~U~ZzY_zE8wLk|F4WESs# z8JEpilKeR?4BpPDOYm$JF-@fx;8lRH?;pfKRWAaOc@6*ozHYZ{4L@DBrm(Q6QsR1Uum40{7RdSPjI^82g2Jvt--yB-Ei+ zL2#H^t?#PZgBZ}>`s>_+D-dlCVzq~;1olfgNARbydTMzLyp`4KD`5n&N*ra89*YA$ zwigZZ6&ynX@->ypdprtpE*fVyREmql2Pkp>r+=A}as;^pBC2A`J(1ryb+s`6L`0!~ zsxQz2@Ui>z8D%oy60yOs@!4FSYn2BZjbKlLpA&74dP*OA9yCdV`QYnOt`rleg;F}4 zU>PlhQhjP%b6NrPL>K12&2RH&;OxmaPRc zH}Bz-nt&ZoPXrO)-;H>j+Sw-yf{7elw)VIl%@tubBL)@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