Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I am working on a sort of text based adventure game (but not purely text), and I have a character data class I'm using to store character data on the characters for my game:
`extends Resource
class_name CharacterData
#starting inventory
const DEFAULT_INV = preload("res://inventory/default_inventory.tres")
#starting skills
const DEFAULT_SKILLS = preload("res://character/skill/character_skills/default_character_skills.tres")
the name of the character
@export var name: String = ""
the inventory for the character
@export var inv: InventoryData = DEFAULT_INV
list of skills and their levels/values for the character (besides constitution?)
@export var skills: CharacterSkillsData = DEFAULT_SKILLS
dialog color for the character
@export var color: Color
health of the character
@export var current_hp: int
maximum health of the character
@export var max_hp: int = 1`
I've just starting working with Godot, and I was wondering if you guys had any ideas as to how I can connect my character data to dialogic character data? The idea I guess is to be able to use my character data ( hp, max hp, the inventory of items the character has, etc) within dialogic. If that is possible. I'm not even sure at this point if that makes sense, but I figured I would ask for input. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions