- Joined
- Apr 19, 2011
- Messages
- 447
Hi.
Right now, I have some questions about spellbooks and abilities... and I hope that you can answer them.
1 - I have read some posts and tutorials about spellbooks, but I still don't understand them clearly... Someone can explain WHAT they exactly are. I think that they are some kind of abilities used to store other abilities, but I'm not sure. (I can't even try to make one if I don't even understand what is it used for...)
2 - I had an idea to make a item system in my proyect, but I'm not sure about how to do it. Whenever the hero picks up an item, for example, a potion; the item won't be stored in the hero's inventory, it will be destroyed, and a variable named "Potions" will increase it's value by 1. Then, whenever the hero uses an ability named "Potion", the variable's value will decrease by 1. I mean, the variable indicates the number of potions the player has, and they will be used trough an ability. Good, this is not hard. But I'm not sure about how to make the hero unable to cast this ability if the variable's value is 0.
I hope you understand what I'm trying to ask. Thanks for reading.
Regards
Right now, I have some questions about spellbooks and abilities... and I hope that you can answer them.
1 - I have read some posts and tutorials about spellbooks, but I still don't understand them clearly... Someone can explain WHAT they exactly are. I think that they are some kind of abilities used to store other abilities, but I'm not sure. (I can't even try to make one if I don't even understand what is it used for...)
2 - I had an idea to make a item system in my proyect, but I'm not sure about how to do it. Whenever the hero picks up an item, for example, a potion; the item won't be stored in the hero's inventory, it will be destroyed, and a variable named "Potions" will increase it's value by 1. Then, whenever the hero uses an ability named "Potion", the variable's value will decrease by 1. I mean, the variable indicates the number of potions the player has, and they will be used trough an ability. Good, this is not hard. But I'm not sure about how to make the hero unable to cast this ability if the variable's value is 0.
I hope you understand what I'm trying to ask. Thanks for reading.
Regards