Almalexian
Bürger
Bezüglich meines Schachtelscripts, ich hab ihn mal mit Scripteffectupdate geschrieben, er fragt aber immer nur die erste Messagebox ab und spielt nicht die weiteren ein, hier ist der Script:
Was habe ich falsch gemacht?
Code:
scn BogenundPfeileBeschwoerungsSkriptTheGodMod
short PfeiloderBogen
short WelchesMaterial
short Wieviel
Begin ScriptEffectUpdate
Set PfeiloderBogen to GetButtonpressed
Messagebox "Pfeil oder Bogen?" , "Pfeil" , "Bogen"
if PfeiloderBogen == 0
Set WelchesMaterial to GetButtonpressed
Messagebox "Welches Material?" , "Eisen" , "Stahl" , "Silber" , "Zwergisch" , "Elfisch" , "Glas" , "Ebenerz" , "Daedra"
if WelchesMaterial == 0
Set Wieviel to GetButtonpressed
Messagebox "Wieviel?" , "1" , "5" , "20" , "50" , "200"
if Wieviel == 0
player.additem Arrow1Iron, 1
elseif Wieviel == 1
player.additem Arrow1Iron, 5
elseif Wieviel == 2
player.additem Arrow1Iron, 20
elseif Wieviel == 3
player.additem Arrow1Iron, 50
elseif Wieviel == 4
player.additem Arrow1Iron, 200
endif
elseif WelchesMaterial == 1
Set Wieviel to GetButtonpressed
Messagebox "Wieviel?" , "1" , "5" , "20" , "50" , "200"
if Wieviel == 0
player.additem Arrow2Steel, 1
elseif Wieviel == 1
player.additem Arrow2Steel, 5
elseif Wieviel == 2
player.additem Arrow2Steel, 20
elseif Wieviel == 3
player.additem Arrow2Steel, 50
elseif Wieviel == 4
player.additem Arrow2Steel, 200
endif
elseif WelchesMaterial == 2
Set Wieviel to GetButtonpressed
Messagebox "Wieviel?" , "1" , "5" , "20" , "50" , "200"
if Wieviel == 0
player.additem Arrow3Silver, 1
elseif Wieviel == 1
player.additem Arrow3Silver, 5
elseif Wieviel == 2
player.additem Arrow3Silver, 20
elseif Wieviel == 3
player.additem Arrow3Silver, 50
elseif Wieviel == 4
player.additem Arrow3Silver, 200
endif
elseif WelchesMaterial == 3
Set Wieviel to GetButtonpressed
Messagebox "Wieviel?" , "1" , "5" , "20" , "50" , "200"
if Wieviel == 0
player.additem Arrow4Dwarven, 1
elseif Wieviel == 1
player.additem Arrow4Dwarven, 5
elseif Wieviel == 2
player.additem Arrow4Dwarven, 20
elseif Wieviel == 3
player.additem Arrow4Dwarven, 50
elseif Wieviel == 4
player.additem Arrow4Dwarven, 200
endif
elseif WelchesMaterial == 4
Set Wieviel to GetButtonpressed
Messagebox "Wieviel?" , "1" , "5" , "20" , "50" , "200"
if Wieviel == 0
player.additem Arrow5Elven, 1
elseif Wieviel == 1
player.additem Arrow5Elven, 5
elseif Wieviel == 2
player.additem Arrow5Elven, 20
elseif Wieviel == 3
player.additem Arrow5Elven, 50
elseif Wieviel == 4
player.additem Arrow5Elven, 200
endif
elseif WelchesMaterial == 5
Set Wieviel to GetButtonpressed
Messagebox "Wieviel?" , "1" , "5" , "20" , "50" , "200"
if Wieviel == 0
player.additem Arrow6Glass, 1
elseif Wieviel == 1
player.additem Arrow6Glass, 5
elseif Wieviel == 2
player.additem Arrow6Glass, 20
elseif Wieviel == 3
player.additem Arrow6Glass, 50
elseif Wieviel == 4
player.additem Arrow6Glass, 200
endif
elseif WelchesMaterial == 6
Set Wieviel to GetButtonpressed
Messagebox "Wieviel?" , "1" , "5" , "20" , "50" , "200"
if Wieviel == 0
player.additem Arrow7Ebony, 1
elseif Wieviel == 1
player.additem Arrow7Ebony, 5
elseif Wieviel == 2
player.additem Arrow7Ebony, 20
elseif Wieviel == 3
player.additem Arrow7Ebony, 50
elseif Wieviel == 4
player.additem Arrow7Ebony, 200
endif
elseif WelchesMaterial == 7
Set Wieviel to Getbuttonpressed
Messagebox "Wieviel" , "1" , "5" , "20" , "50" , "200"
if Wieviel == 0
player.additem Arrow8Daedric, 1
elseif Wieviel == 1
player.additem Arrow8Daedric, 5
elseif Wieviel == 2
player.additem Arrow8Daedric, 20
elseif Wieviel == 3
player.additem Arrow8Daedric, 50
elseif Wieviel == 4
player.additem Arrow8Daedric, 200
endif
endif
elseif PfeiloderBogen == 1
Set WelchesMaterial to GetButtonpressed
Messagebox "Welches Material?" , "Eisen" , "Stahl" , "Silber" , "Zwergisch" , "Elfisch" , "Glas" , "Ebenerz" , "Daedrisch"
if WelchesMaterial == 0
player.additem WeapIronBow, 1
elseif WelchesMaterial == 1
player.additem WeapSteelBow, 1
elseif WelchesMaterial == 2
player.additem WeapSilverBow, 1
elseif WelchesMaterial == 3
player.additem WeapDwarvenBow, 1
elseif WelchesMaterial == 4
player.additem WeapElvenBow, 1
elseif WelchesMaterial == 5
player.additem WeapGlassBow, 1
elseif WelchesMaterial == 6
player.additem WeapEbonyBow, 1
elseif WelchesMaterial == 7
player.additem WeapDaedricBow, 1
endif
endif
end
Was habe ich falsch gemacht?