#  Make your own demo 🔥

<img src="https://huggingface.co/datasets/huggingface-ml-4-games-course/course-images/resolve/main/en/unit3/owndemo.png" alt="demo"/>

Now that you've learned how the demo works, **it's time to make your own version**!

We **can't wait to see the amazing demos you're going to make 🔥**. 

You can:

- Share your demo on LinkedIn and X, and tag us  @cubzh_ @gigax @huggingface **we'll repost it** 🤗. 

- But also share it on the [Hugging Face Discord server in the #ml-4-games-i-made-this channel](https://hf.co/join/discord).

## Teach your NPC new skills

For this part of the unit, it's [Tristan](https://x.com/tr_deborde), the founder of Gigax, that made a video tutorial where you're going to teach a NPC new skills 🔥.

**The name of the Space changed, it's not ai-npc anymore but NPC-Playground.**

<video width="1280" height="720" controls="true" src="https://huggingface.co/datasets/huggingface-ml-4-games-course/course-images/resolve/main/en/unit3/gigax_cubzh_hf_full.mp4">
</video>


## Bonus: find a funny hat

In addition to being able to teach your NPCs new skills, you can customize the assets you want to use in your demo thanks to a free library of 25k assets.

For instance, I want the NPC to give me a hat. For now, they give me a party hat when I ask them if they have a party hat for me.

But there's so many more funny hats to try.

<img src="https://huggingface.co/datasets/huggingface-ml-4-games-course/course-images/resolve/main/en/unit3/hats.png" alt="Cubzh Hats" />

To do that, I selected 6 funny hats you can replace with:

- pratamacam.chicken_hat: Chicken Hat
- claire.sombrero: Sombrero
- exoticwilper.hat: Bear hat 
- creativitial.cap: Child cap
- claire.napoleon_hat: Napoleon Hat
- claire.cowboy_hat: Cowboy hat


It's quite simple, the skill we want to customize is GIVEHAT skill.

You need to go to Files and click on cubzh.lua


<img src="https://huggingface.co/datasets/huggingface-ml-4-games-course/course-images/resolve/main/en/unit3/partyhat1.png" alt="Cubzh tutorial" />

Then, we go to the `GIVEHAT` skill, here you can see what object is loaded, for now it's a party hat. The name of an object in Cubzh is `creator_name.item_name`.

<img src="https://huggingface.co/datasets/huggingface-ml-4-games-course/course-images/resolve/main/en/unit3/partyhat2.png" alt="Cubzh Hats" />

You can replace it with one of the 6 hats we provided.

Now, you just need to save, go back to your demo and talk to an NPC, ask them to put you a hat in your head and voila!


<img src="https://huggingface.co/datasets/huggingface-ml-4-games-course/course-images/resolve/main/en/unit3/partyhat3.png" alt="Cubzh Hats" />



## Challenge: create new skills


[You can check the documentation to learn more](https://huggingface.co/spaces/cubzh/ai-npcs/blob/main/README.md) on how to tweak NPC behavior and teach NPCs new skills.




<EditOnGithub source="https://github.com/huggingface/making-games-with-ai-course/blob/main/units/en/unit3/customize.mdx" />