Skip to main content
Clearer title. ("Record" could be confusing in the sense of "making a recording of", which wasn't meant here.)
Link
Anko
  • 13.4k
  • 10
  • 55
  • 82

How do I record access toshould my game characters store their abilities/spells?

Some clarifications and useful tags.
Source Link
Anko
  • 13.4k
  • 10
  • 55
  • 82

How to Record Accessdo I record access to Abilitiesabilities/Spellsspells?

I'm a novice atnew to game development and I'm a bit confused onabout how to effectively store an object's access to certain spells/abilities.

The player and mob objects are all generated from the same class. However, each object may have access to different abilities and spells. How do I keep track of a specific object's access to these?

For instanceExample: myMy player object might have access to fireballFireball and hasteHaste, while a goblin might have access to confusionConfusion.

I followed the RogueBasin Python Libtcod tutorialthe RogueBasin Python Libtcod tutorial, and that all makes sense (attachingI understand how to attach a spell function to scroll use). I'm just not sure how to emulate a character memorizing a spell and using it as an ability.

How to Record Access to Abilities/Spells

I'm a novice at game development and I'm a bit confused on how to effectively store an object's access to certain spells/abilities.

The player and mob objects are all generated from the same class. However, each object may have access to different abilities and spells. How do I keep track of a specific object's access to these?

For instance: my player object might have access to fireball and haste, while a goblin might have access to confusion.

I followed the RogueBasin Python Libtcod tutorial, and that all makes sense (attaching a spell function to scroll use). I'm just not sure how to emulate a character memorizing a spell and using it as an ability.

How do I record access to abilities/spells?

I'm new to game development and a bit confused about how to effectively store an object's access to certain spells/abilities.

The player and mob objects are all generated from the same class. However, each object may have access to different abilities and spells. How do I keep track of a specific object's access to these?

Example: My player object might have access to Fireball and Haste, while a goblin might have access to Confusion.

I followed the RogueBasin Python Libtcod tutorial, and I understand how to attach a spell function to scroll use. I'm just not sure how to emulate a character memorizing a spell and using it as an ability.

Source Link
Vecta
  • 147
  • 4

How to Record Access to Abilities/Spells

I'm a novice at game development and I'm a bit confused on how to effectively store an object's access to certain spells/abilities.

The player and mob objects are all generated from the same class. However, each object may have access to different abilities and spells. How do I keep track of a specific object's access to these?

For instance: my player object might have access to fireball and haste, while a goblin might have access to confusion.

I followed the RogueBasin Python Libtcod tutorial, and that all makes sense (attaching a spell function to scroll use). I'm just not sure how to emulate a character memorizing a spell and using it as an ability.