Level Based Spellbook?

Dynamis

New Member
Reaction score
2
I have read several tutorials on Spellbooks and have a basic understanding of how one works now, but I am unable to find a tutorial -anywhere- that includes how to make spells in a spellbook level-based.. Aka, you gain Critical Strike at level 1 but then something like Tranquility at level 50? (From the spellbook and those spell names are just examples.) I know Defiance ORPG and a few others did this, but I am not sure how it's possible.
 

jig7c

Stop reading me...-statement
Reaction score
123
i don't have much experience with spell book but you could create 50 spell books and do this

at level 1, the spell book has bash
then when the hero gains another level, remove spell book 1 and add spell book 2, which has bash and critical strike...
then at level 3, remove spell book 2 and add spell book 3, which has crit strike, bash, and evasion...

follow me?
 

Dynamis

New Member
Reaction score
2
i don't have much experience with spell book but you could create 50 spell books and do this

at level 1, the spell book has bash
then when the hero gains another level, remove spell book 1 and add spell book 2, which has bash and critical strike...
then at level 3, remove spell book 2 and add spell book 3, which has crit strike, bash, and evasion...

follow me?

Yes, but the spell wouldn't stay there and just be unusable like a normal hero ability? Or what would happen if I set the level requirement for the spell to 50 and such, THEN added it through a spellbook? Would that work?
 

MB-Kiyoshi

New Member
Reaction score
4
I have read several tutorials on Spellbooks and have a basic understanding of how one works now, but I am unable to find a tutorial -anywhere- that includes how to make spells in a spellbook level-based.. Aka, you gain Critical Strike at level 1 but then something like Tranquility at level 50? (From the spellbook and those spell names are just examples.) I know Defiance ORPG and a few others did this, but I am not sure how it's possible.

You can make several triggers or use variables to achieve what you want.

Trigger:
  • Paladin Level 5 Skill
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Level of (Triggering unit)) Equal to 5
    • Actions
      • If ((Unit-type of (Triggering unit)) Equal to Paladin) then do (Hero - Learn skill for (Triggering unit): Divine Shield) else do (Do nothing)


PS: I'm not sure about the underlined words.
 

Dynamis

New Member
Reaction score
2
You can make several triggers or use variables to achieve what you want.

Trigger:
  • Paladin Level 5 Skill
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Level of (Triggering unit)) Equal to 5
    • Actions
      • If ((Unit-type of (Triggering unit)) Equal to Paladin) then do (Hero - Learn skill for (Triggering unit): Divine Shield) else do (Do nothing)


PS: I'm not sure about the underlined words.

This adds the spell to the hero, but not the spellbook?
 

Sajberhippie

New Member
Reaction score
30
I don't really understand the issue. It's easy to set how many levels the spellbook should have, and then you just set what spells should be included. Unless the included spells should have levels in themselves, no triggering is needed at all.

Check the fields
Stats - Levels
Stats - Is a Hero ability
Data - Spells

or whatever they are called. Something like that.
 

Legacyspy

New Member
Reaction score
19
This is really simple.
Make a spell book with 2 levels.
Make level 1 have critical strike and max/min of 1 skill.
Make level 2 have tranquilty and critical strike max/min of 2 skills.

Trigger
Hero Gains a level
Level of hero = 50
Set level of spellbook to 2
 

trees123

New Member
Reaction score
6
Why not use the Enable/Disable option? Disable all spells when a person picks their hero, then as they reach their spell level, enable it.

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Hero level of (Triggering unit)) Equal to 50
    • Actions
      • Player - Enable Tranquility for (Owner of (Triggering unit))
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top