Jougi
New Member
- Reaction score
- 2
I am making a spellbook that has 4 levels and includes 4 spells, Z, X, C and V. I want to work like this.
1. level includes: Z-lvl1
2. level includes: Z-lvl2 and X-lvl1
3. level includes: Z-lvl3, X-lvl2 and C-lvl1
4. level includes: Z-lvl4, X-lvl3, C-lvl2 and V-lvl1
I've been using this kinda trigger
I don't need to trigger V, because it only has 1 level.
But i'm running to this problem every time i play with my character. When i learn a new level of that spellbook, it doesn't have the spells inside the spellbook. It levels up the spells to the right level, but some of the spells aren't there. I just cant figure out what is wrong with my book. If you have a suggestion what to do, please tell me.
EDIT: Fixed the problem, my maximum and minimum spells values were wrong.
1. level includes: Z-lvl1
2. level includes: Z-lvl2 and X-lvl1
3. level includes: Z-lvl3, X-lvl2 and C-lvl1
4. level includes: Z-lvl4, X-lvl3, C-lvl2 and V-lvl1
I've been using this kinda trigger
Code:
myspellbook trigger
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal myspellbook
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Guy1
(Unit-type of (Triggering unit)) Equal to Guy2
Actions
Unit - Set level of Z for (Triggering unit) to (Level of myspellbook for (Triggering unit))
Unit - Set level of X for (Triggering unit) to ((Level of myspellbook for (Triggering unit)) - 1)
Unit - Set level of C for (Triggering unit) to ((Level of myspellbook for (Triggering unit)) - 2)
I don't need to trigger V, because it only has 1 level.
But i'm running to this problem every time i play with my character. When i learn a new level of that spellbook, it doesn't have the spells inside the spellbook. It levels up the spells to the right level, but some of the spells aren't there. I just cant figure out what is wrong with my book. If you have a suggestion what to do, please tell me.
EDIT: Fixed the problem, my maximum and minimum spells values were wrong.