HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Carrying over spells

09-21-2003, 01:39 AM#1
High Incarnate
Im my RPG, in order for the dragon rideing to work properly i need to create a exact copy of my Hero, execpt that its flying

Im managed to carry everything over, including Levels, exp, items and attributes.

But i cant find a way to carry over the spells

Any help?
09-21-2003, 01:49 AM#2
Draco
If it's on the same map, just give it the same spells. If it's on a different map, just export the object data and import it into the new map.
09-21-2003, 01:53 AM#3
High Incarnate
Maybe i worded it wrong

Say the original hero has Level 3 Storm bolt, level 2 Bash and Avatar

Then second hero has all the spells and such, it is exaclty the same unit, expect the movement type and hieght. And its the same map

When you switch the units the trigger updates the second unit to level 6, gives him all the others items and attributes, but his spells and unlearnt, he has 6 points to spend, is there a way for the trigger to spend these points so he has the same spells and their levels as the first hero.
09-21-2003, 02:03 AM#4
sweet5
no there isnt a way to do that but can i see ur map meet me in cahnnle ice blood or post it in one of these 2 threads
09-21-2003, 02:23 AM#5
malleus
If you use Metamorphosis or Bear Form as the base Ability for your Spell, the distributed Ability points carry over as long as you give the new unit the same abilities. I am not sure for other morphing abilities like chaos though. Try it out, you might want to base your Spell on one of these.

Greetings,
Malleus
09-21-2003, 02:27 AM#6
High Incarnate
Ah i didnt think of that

Its not really a spell but maybe i can make an item "Dragon Horn" that you can only use in mounting regions

Thanks :D
09-21-2003, 02:45 AM#7
Draco
Use variables like booleans for each spell learned and integers for the level of the spell. Like the even unit learns new ability. Condition - If ability learned equal to Healing Wave etc., set boolean "HealingWave" to true. Set integer "HealingWaveLevel" to (math-addition) "healingwavelevel" + 1.

Have all integers start at 0 and booleans to false to start with.
09-21-2003, 07:22 AM#8
High Incarnate
With the learnt skill condidtion, how can i do it with custom spells?
Will it work if i use the spell i base it off?
09-21-2003, 08:45 AM#9
cideh
You have to convert the skill to JASS and then change the four letter code to your custom one(press ctrl+d in object editor to see the codes).