Un Problème sans queue ni tête est apparu dans le TESCS. je cite :
Citation
Syntax error line 24
Could not find variable or function "ower"
Could not find variable or function "ower"
Le script est le suivant:
Spoiler
begin _arch_Sys_ConstellationSys
Short DoneVarConst
;*******************************************************************************
;Definition de la variable Constellation
;*******************************************************************************
; 0 == -NONE-
; 1 == Tour
; 2 == Rituel
; 3 == Destrier
; 4 == Apprenti
; 5 == Mage
; 6 == Voleur
; 7 == Dame
; 8 == Amant
; 9 == Ombre
; 10 == Seigneur
; 11 == Guerrier
; 12 == Atronach
If ( DoneVarConst == 0 )
;Constellation de la tour
If ( Player->GetEffect "tower key" == 1 )
set Constellation to 1
set DoneVarConst to 1
;Constellation du Rituel
elseif ( Player->geteffect "blessed touch" == 1 )
set Constellation to 2
set DoneVarConst to 1
;Constellation du Destrier
elseif ( Player->geteffect "charioteer ability" == 1 )
set Constellation to 3
set DoneVarConst to 1
;Constellation de l'Apprenti
elseif ( Player->geteffect "elfborn ability" == 1 )
set Constellation to 4
set DoneVarConst to 1
;Constellation du Mage
elseif ( Player->geteffect "fay ability" == 1 )
set Constellation to 5
set DoneVarConst to 1
;Constellation du Voleur
elseif ( Player->geteffect "akaviri danger-sense" == 1 )
set Constellation to 6
set DoneVarConst to 1
;Constellation de la Dame
elseif ( Player->geteffect "lady's favor" == 1 )
set Constellation to 7
set DoneVarConst to 1
;Constellation de l'Amant
elseif ( Player->geteffect "mooncalf ability" == 1 )
set Constellation to 8
set DoneVarConst to 1
;Constellation de l'Ombre
elseif ( Player->geteffect "moonshadow" == 1 )
set Constellation to 9
set DoneVarConst to 1
;Constellation du Seigneur
elseif ( Player->geteffect "trollkin ability" == 1 )
set Constellation to 10
set DoneVarConst to 1
;Constellation du Guerrier
elseif ( Player->geteffect "warywrd ability" == 1 )
set Constellation to 11
set DoneVarConst to 1
;Constellation de l'Atronach
elseif ( Player->geteffect "wombburn" == 1 )
set Constellation to 12
set DoneVarConst to 1
endif
;*******************************************************************************
;Gestion du systeme constellaire
;*******************************************************************************
else
If ( Constellation == 1 )
If ( Month == 1 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 7 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 2 )
If ( Month == 2 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 8 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 3 )
If ( Month == 3 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 9 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 4 )
If ( Month == 4 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 10 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 5 )
If ( Month == 5 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 11 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 6 )
If ( Month == 6 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 12 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 7 )
If ( Month == 7 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 1 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 8 )
If ( Month == 8 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 2 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 9 )
If ( Month == 9 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 3 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 10 )
If ( Month == 10 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 4 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 11 )
If ( Month == 11 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 5 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 12 )
If ( Month == 12 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 6 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
endif
endif
End
Short DoneVarConst
;*******************************************************************************
;Definition de la variable Constellation
;*******************************************************************************
; 0 == -NONE-
; 1 == Tour
; 2 == Rituel
; 3 == Destrier
; 4 == Apprenti
; 5 == Mage
; 6 == Voleur
; 7 == Dame
; 8 == Amant
; 9 == Ombre
; 10 == Seigneur
; 11 == Guerrier
; 12 == Atronach
If ( DoneVarConst == 0 )
;Constellation de la tour
If ( Player->GetEffect "tower key" == 1 )
set Constellation to 1
set DoneVarConst to 1
;Constellation du Rituel
elseif ( Player->geteffect "blessed touch" == 1 )
set Constellation to 2
set DoneVarConst to 1
;Constellation du Destrier
elseif ( Player->geteffect "charioteer ability" == 1 )
set Constellation to 3
set DoneVarConst to 1
;Constellation de l'Apprenti
elseif ( Player->geteffect "elfborn ability" == 1 )
set Constellation to 4
set DoneVarConst to 1
;Constellation du Mage
elseif ( Player->geteffect "fay ability" == 1 )
set Constellation to 5
set DoneVarConst to 1
;Constellation du Voleur
elseif ( Player->geteffect "akaviri danger-sense" == 1 )
set Constellation to 6
set DoneVarConst to 1
;Constellation de la Dame
elseif ( Player->geteffect "lady's favor" == 1 )
set Constellation to 7
set DoneVarConst to 1
;Constellation de l'Amant
elseif ( Player->geteffect "mooncalf ability" == 1 )
set Constellation to 8
set DoneVarConst to 1
;Constellation de l'Ombre
elseif ( Player->geteffect "moonshadow" == 1 )
set Constellation to 9
set DoneVarConst to 1
;Constellation du Seigneur
elseif ( Player->geteffect "trollkin ability" == 1 )
set Constellation to 10
set DoneVarConst to 1
;Constellation du Guerrier
elseif ( Player->geteffect "warywrd ability" == 1 )
set Constellation to 11
set DoneVarConst to 1
;Constellation de l'Atronach
elseif ( Player->geteffect "wombburn" == 1 )
set Constellation to 12
set DoneVarConst to 1
endif
;*******************************************************************************
;Gestion du systeme constellaire
;*******************************************************************************
else
If ( Constellation == 1 )
If ( Month == 1 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 7 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 2 )
If ( Month == 2 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 8 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 3 )
If ( Month == 3 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 9 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 4 )
If ( Month == 4 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 10 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 5 )
If ( Month == 5 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 11 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 6 )
If ( Month == 6 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 12 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 7 )
If ( Month == 7 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 1 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 8 )
If ( Month == 8 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 2 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 9 )
If ( Month == 9 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 3 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 10 )
If ( Month == 10 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 4 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 11 )
If ( Month == 11 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 5 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
ElseIf ( Constellation == 12 )
If ( Month == 12 )
If ( GetMasserphase == 1 )
player->addspell, "_arch_BonusConstEffect" 1
endif
elseif ( Month == 6 )
If ( GetSecundaphase == 1 )
player->addspell, "_arch_MalusConstEffect" 1
endif
else
If ( Player->GetEffect "_arch_BonusConstEffect" == 1 )
player->removespell "_arch_BonusConstEffect" 1
Elseif ( Player->GetEffect "_arch_MalusConstEffect" == 1 )
player->removespell "_arch_MalusConstEffect" 1
endif
endif
endif
endif
End
Des solutions? j'ai changé et Ré-écrit plusieurs fois mon script et pas moyen, ça veux pas marcher. Dernier message d'erreur en date après manipulation:
Citation
Syntax error line 24
Could not find variable or function "If"
Could not find variable or function "If"
... vous comprenez mon désaroi...
Modifié par Snaïpe, 21 septembre 2008 - 17:09.