.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 2: The Ascension Wars (http://forum.shrapnelgames.com/forumdisplay.php?f=55)
-   -   What's wrong with this script? (http://forum.shrapnelgames.com/showthread.php?t=22791)

Thilock_Dominus February 15th, 2005 07:14 AM

What\'s wrong with this script?
 
I'm using one of the new script command #secondshape and #firstshape. But apparently when the dryad gets low on on hit points it doesn't shapechange.


Quote:

#newmonster 2005
#name "Forest Dryad"
#spr1 "./FOL_Animation/Units/Dryad1.tga"
#spr2 "./FOL_Animation/Units/Dryad1.tga"
#descr "Forest Dryads are tree spirits - magical beings who dwell in trees and are capable of assuming the aspects of a particular tree or even shape-shifting into the form of a tree at will. The Forest of Loren is one of the last refuges of these strange beings. Dryads do have a solid form, with flesh like pliable, green sapwood of a young tree. Their hair is like the foliage of a tree or may resemble moss and lichen.

When they appear to Elves or Men in a friendly or alluring aspect, Dryads take on the semblance of a beautiful, lithe young woman with treelike characteristics. In place of hair, a cascade of green or autumn-coloured leafy foliage flows from their head, and their complexion is green, brown or even silvery-white."
#ap 14
#mapmove 2
#hp 26
#prot 5
#size 2
#str 10
#enc 2
#att 12
#def 16
#prec 12
#mr 14
#mor 15
#gcost 160
#rcost 5
#weapon 250
#weapon 250
#ambidextrous 2
#awe 2
#female
#fireres -25
#forestsurvival
#heal
#holy
#magicbeing
#nametype 110
#neednoteat
#noitem
#regeneration 5
#stealthy 15
#secondshape 2006
#noleader
#okmagicleader
#noundeadleader
#end

#newmonster 2006
#name "Forest Dryad"
#spr1 "./FOL_Animation/Units/test.tga"
#spr2 "./FOL_Animation/Units/test.tga"
#descr "Forest Dryads are tree spirits - magical beings who dwell in trees and are capable of assuming the aspects of a particular tree or even shape-shifting into the form of a tree at will. The Forest of Loren is one of the last refuges of these strange beings. Dryads do have a solid form, with flesh like pliable, green sapwood of a young tree. Their hair is like the foliage of a tree or may resemble moss and lichen. Dryads are not small creatures, they tend to be up to about twice the height of an Elf.

When they appear to Elves or Men in a friendly or alluring aspect, Dryads take on the semblance of a beautiful, lithe young woman with treelike characteristics. In place of hair, a cascade of green or autumn-coloured leafy foliage flows from their head, and their complexion is green, brown or even silvery-white. Dryads speak with strange, eerie sonorous voices able to charm or scare the unwary. Their long fingers are usually also dangerous weapons sprouting thorns or whip-like twigs. They are extremely spiteful and vengeful if offended or if the trees they inhabit are threatened or harmed.

Wood Elves are careful to placate these spirits and often ask them for help. Dryads trust and favour Wood Elves and will help them in many ways, even by assuming awesome and savage aspects to fight alongside the Elves in battle."
#ap 14
#mapmove 1
#hp 26
#prot 15
#size 3
#str 14
#enc 3
#att 15
#def 16
#prec 12
#mr 14
#mor 15
#gcost 160
#rcost 5
#weapon 250
#weapon 250
#ambidextrous 2
#entangle
#fear 2
#female
#fireres -25
#forestsurvival
#heal
#holy
#magicbeing
#nametype 110
#neednoteat
#noitem
#regeneration 10
#stealthy 15
#firstshape 2005
#noleader
#okmagicleader
#noundeadleader
#end



Endoperez February 15th, 2005 11:49 AM

Re: What\'s wrong with this script?
 
Without analyzing that too much, do you mean that they don't transform at all, or that they don't transform until they die?

If it is the latter, then description of that command (#secondshape?) might is just confusing.

Thilock_Dominus February 15th, 2005 12:23 PM

Re: What\'s wrong with this script?
 
It doesn't transform at all.

The first- and secondshape command should make the unit to transform when the unit gets low on hitpoints.

Ironhawk February 15th, 2005 07:04 PM

Re: What\'s wrong with this script?
 
Are you sure the functionality is "gets low on hitpoints"? The only shapechange functions I've seen are manual (like Dragon pretenders), whenever the unit takes a non-mortal hit, and when a unit is killed.

Thilock_Dominus February 15th, 2005 07:15 PM

Re: What\'s wrong with this script?
 
Yep, the werewolves have this ability and the command plus description is in the mod manual.

bone_daddy February 15th, 2005 08:11 PM

Re: What\'s wrong with this script?
 
Perhaps the #shapechange command also required to enable the ability.

Duncanish February 15th, 2005 10:48 PM

Re: What\'s wrong with this script?
 
Did you copy that directly from your mod file or hand type it? I'm assuming the former, but just in case, try double-checking your spelling. That gave me problems before and I felt like a complete moron when I found out what the problem was.

Other than that, I can't see anything wrong. Maybe the command is broken? Or maybe it's conflicting with something else you have?

Kristoffer O February 16th, 2005 06:43 AM

Re: What\'s wrong with this script?
 
Shapeshifters only change into forms with more hitpoints, unless they use the secondtempshape. It would be silly if a dragon was killed and turned into a human. Apart from the fact that it would loop and return to dragon form again etc.

So, just give one of the forms an additional HP.

Oversway February 16th, 2005 10:13 AM

Re: What\'s wrong with this script?
 
Quote:

It would be silly if a dragon was killed and turned into a human.

What if it was originally a human, cursed into dragon form?

Kristoffer O February 16th, 2005 06:29 PM

Re: What\'s wrong with this script?
 
Ahh, but then it would turn into a dead human http://forum.shrapnelgames.com/images/smilies/wink.gif


All times are GMT -4. The time now is 10:59 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.