ML for Games Course documentation

Make your own demo 🔥

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Make your own demo 🔥

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:

Teach your NPC new skills

For this part of the unit, it’s Tristan, 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.

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.

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

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.

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!

Cubzh Hats

Challenge: create new skills

You can check the documentation to learn more on how to tweak NPC behavior and teach NPCs new skills.

< > Update on GitHub