Construction Set In ein Tier verwandeln?

Ismaiel

Reisender
Ich habe mir polymorph runtergeladen und fand es ganz klasse.
nun habe ich einen haimesh gefunden und würde mich auch gern in den verwandeln. aber ich weiß gar nicht wie die morphe funktionieren.
was müsste ich in einem der polymorph skripte ändern um ein anderes tier zu werden?:huh:
 
Schau dir doch einfach die Mod ganz genau an. Wenn du verstanden hast, wie die das macht, kannst du es ja selbst genauso machen, nur mit dem Hai.
 
darin liegt leider das problem. da sind ja nun einige scripts drin (sind ja auch ein haufen tiere) und ich versteh eigentlich kein einziges.

ich weiß nur das erstmal eine creatur erstellt werden muss die der player nachher werden soll.
 
so ich hab jetzt mal alles für den berglöwen rausgezogen:

scn MORPHLytirMountainLionSCRIPT
ref Lytir
ref me
float yfactme
float xfactme
float zfactme

Begin gamemode
if getstage MORPHmainquest4 == 5 && GetDisabled == 1
Enable
endif
end

begin ondeath player
player.addspell MORPHMountainLionspell
end

begin ondeath
set me to getself
set Lytir to me.placeatme, MorphLytir, 1, 256, 0
Lytir.PlayMagicShaderVisuals effectSummonMythicDawn 5
me.PlayMagicShaderVisuals effectSummonMythicDawn 5
set xfactme to me.GetPos x
set yfactme to me.GetPos y
set zfactme to me.GetPos z
Lytir.SetPos y, yfactme
Lytir.SetPos x, xfactme
Lytir.SetPos z, zfactme

scn MORPHspellLPMountainLionSCRIPT
; this script is for placing the animal and setting values that are for that animal
float skill
float chance

Begin scripteffectstart
player.PlayMagicShaderVisuals MORPHfogeffect 2
set skill to (player.GetActorValue Alteration) * 4 + (player.GetActorValue Conjuration) + (player.GetActorValue Mysticism) + (player.GetActorValue Illusion)
set chance to GetRandomPercent * (670) / 99
if skill < chance
return
endif
StartQuest MORPHanimalQUEST
set MORPHanimalQUEST.me to player.PlaceAtMe MORPHMountainLion, 1, 100, 0
set MORPHanimalQUEST.attackingcreature to 1 ; is 1 if the creature can attack need to be 1 for attacks
set MORPHanimalQUEST.nighteye to 1 ; 1 if he can use nighteye
set MORPHanimalQUEST.senses to 6 ; senses from 0 to 6
set MORPHattackQUEST.attacksound to NPCMountainLionAttack ; the sound that is played when attacking
set MORPHattackQUEST.attack1 to 2 ;hand to hand attack
set MORPHattackQUEST.attack2 to 0 ;spell 1 different spell depending on number
set MORPHattackQUEST.attack3 to 0 ;spell 2
set MORPHattackQUEST.attackdamage to 2 ;how much damage the creature does 1-10
set MORPHattackQUEST.height to 100 ;attackheight for spells
end

scn MORPHspellMountainLionSCRIPT
; this script is for placing the animal and setting values that are for that animal

Begin scripteffectstart
StartQuest MORPHanimalQUEST
player.PlayMagicShaderVisuals MORPHfogeffect 2
set MORPHanimalQUEST.me to player.PlaceAtMe MORPHMountainLion, 1, 100, 0
set MORPHanimalQUEST.attackingcreature to 1 ; is 1 if the creature can attack need to be 1 for attacks
set MORPHanimalQUEST.nighteye to 1 ; 1 if he can use nighteye
set MORPHanimalQUEST.senses to 6 ; senses from 0 to 6
set MORPHattackQUEST.attacksound to NPCMountainLionAttack ; the sound that is played when attacking
set MORPHattackQUEST.attack1 to 2 ;hand to hand attack
set MORPHattackQUEST.attack2 to 0 ;spell 1 different spell depending on number
set MORPHattackQUEST.attack3 to 0 ;spell 2
set MORPHattackQUEST.attackdamage to 2 ;how much damage the creature does 1-10
set MORPHattackQUEST.height to 100 ;attackheight for spells
end


die hier scheinen fürs allgemeine wichtig zu sein

scn MORPHtransformstartSCRIPT
; this script is for getting combat betwen animal and things attacking player
ref meself
ref target
ref newtarget

Begin scripteffectstart
set meself to getself
set target to meself.GetCombatTarget
set newtarget to MORPHanimalQUEST.me
if target == player
newtarget.StartCombat meself
meself.StartCombat newtarget
endif
end

begin ScriptEffectFinish
set meself to getself
set target to meself.GetCombatTarget
set newtarget to MORPHanimalQUEST.me
if target == player
newtarget.StartCombat meself
meself.StartCombat newtarget
message "target morph"
endif
end

scn MORPHtransformendSCRIPT
; this script is for getting crimes of the morph to the player
ref meself
ref MORPH
ref target
short pigkiller

Begin scripteffectstart
set meself to getself
set MORPH to MORPHanimalQUEST.me
set target to meself.GetCombatTarget
if meself != player && meself != MORPH
if IsActor == 1 && GetIsCreature != 1 && Getdead != 1
meself.stopcombat
meself.setalert 0
if meself.GetActorValue responsibility > 30
Player.ModCrimeGold MORPHanimalQUEST.MORPHcrime
if MORPHanimalQUEST.MORPHcrime > 0
Player.startcombat meself
set pigkiller to 1
endif
set MORPHanimalQUEST.MORPHcrime to 0
endif
endif
if target == MORPH
meself.startcombat player
endif
endif
end

begin ScriptEffectFinish
if pigkiller == 1
Player.startcombat meself
endif

scn MORPHdisabledead

begin OnDeath
disable
end

scriptname MORPHactivateSCRIPT
ref target
ref me

Begin ScriptEffectstart
set target to getself
set me to MORPHanimalQUEST.me
if target.IsActor == 1
return
elseif me.Getdistance target < 500
Activate player, 1
endif
end


keine ahnung ob die jetzt alle wichtig sind oder ob da sogar noch welche fehlen. ist alles ziemlich unübersichtlich wie ich finde.