Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Player 2 AI NPC for Godot

An asset by ajelefantgg
The page banner background of a mountain and forest
Player 2 AI NPC for Godot hero image

Quick Information

0 ratings
Player 2 AI NPC for Godot icon image
ajelefantgg
Player 2 AI NPC for Godot

The Player 2 AI NPC Godot plugin allows developers to easily create AI NPCs in their Godot projects.The plugin uses free AI APIs from the player2 App at https://player2.game/.Just open Player2, and the plugin connects automatically, so you can dive right into building your world instead of wrestling with keys or settings. When your game is ready, we’ll share it with our community of 40,000+ active players eager for AI-driven adventures: https://player2.game/discordFor usage information, visit the following:https://github.com/elefant-ai/player2-ai-npc-godot/

Supported Engine Version
4.3
Version String
0.9
License Version
GPLv3
Support Level
community
Modified Date
8 days ago
Git URL
Issue URL

Player 2 AI NPC Plugin for Godot

The Official Player2 AI NPC Plugin for Godot

The Player 2 AI NPC Godot plugin allows developers to easily create AI NPCs in their Godot projects.

The plugin uses free AI APIs from the player2 App

Just open Player2, and the plugin connects automatically, so you can dive right into building your world instead of wrestling with keys or settings. When your game is ready, we’ll share it with our community of 40,000+ active players eager for AI-driven adventures on our discord

For usage information, visit our blog

Usage Guide

Installing the plugin

The plugin is available in the godot asset library

Adding the node

First, add a Player 2 AI NPC Node

image

Then, open the node and modify the description of the agent

image

Talking to the Agent

To talk to the agent, call it's chat function. To notify the agent of stimuli from the world, call it's notify function.

For example, we have a simple interface example with a text_sent signal that is fired when the user types in a chat box and presses enter. This can get hooked into the chat function to talk to the agent.

image

Hearing back from the agent can be done with the agent's chat_received signal. Hook this up to a function that can read the agent's reply.

TTS and Player 2 Launcher Characters

Access TTS support and the characters from the Player 2 launcher using the Character Config

image

Tool Calling

First, create a script that contains functions that the agent will call.

image

Then, add this script to an empty Node.

Then, drag the new node into the Scan Node for Functions property in the AI NPC node

image

You should now see a list of functions with their descriptions below:

image

Game Key

Access and set your game key (used to register your app in the Player 2 Launcher) by going into Project Settings -> Player 2 -> Game Key

image

The Player 2 AI NPC Godot plugin allows developers to easily create AI NPCs in their Godot projects.

The plugin uses free AI APIs from the player2 App at https://player2.game/.

Just open Player2, and the plugin connects automatically, so you can dive right into building your world instead of wrestling with keys or settings. When your game is ready, we’ll share it with our community of 40,000+ active players eager for AI-driven adventures: https://player2.game/discord

For usage information, visit the following:
https://github.com/elefant-ai/player2-ai-npc-godot/

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Player 2 AI NPC for Godot icon image
ajelefantgg
Player 2 AI NPC for Godot

The Player 2 AI NPC Godot plugin allows developers to easily create AI NPCs in their Godot projects.The plugin uses free AI APIs from the player2 App at https://player2.game/.Just open Player2, and the plugin connects automatically, so you can dive right into building your world instead of wrestling with keys or settings. When your game is ready, we’ll share it with our community of 40,000+ active players eager for AI-driven adventures: https://player2.game/discordFor usage information, visit the following:https://github.com/elefant-ai/player2-ai-npc-godot/

Supported Engine Version
4.3
Version String
0.9
License Version
GPLv3
Support Level
community
Modified Date
8 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers