Arielle 1000
Freund des Hauses
Dann versuche ich es mal mit dem Skript aus deinem 22:12 Uhr Post. Wenn ich nicht klar komme, melde ich mich noch mal. Vielen Dank für deine Hilfe.
LG
Arielle
LG
Arielle
Scn AAAMusikWürfelScript
Short Choosing
short button
Begin onActivate player
if Choosing == 0
set Choosing to -1
endif
end
Begin onEquip player
if Choosing == 0
set Choosing to -1
endif
end
Begin gameMode
If (Choosing == -1)
MessageBox "Was möchtet ihr tun?", "Nehmen", "Musik auswählen", "Fertig"
set Choosing to 1
return
elseif (Choosing == 1)
set button to GetButtonPressed
if (button== -1)
return
elseif (button == 0)
Activate
Set Choosing to 0
elseif (button == 1)
Set Choosing to -2
elseif (button == 2)
Set Choosing to 0
endif
Endif
If (Choosing == -2)
MessageBox "Welche Musik möchtet ihr hören?", "Lied 1", "Lied 2", "Lied 3", "Lied 4", "Lied 5", "Zurück", "Abbrechen"
set Choosing to 2
return
elseif (Choosing == 2)
set button to GetButtonPressed
if (button == -1)
return
elseif (button == 5)
Set Choosing to -1
elseif (button == 6)
Set Choosing to 0
else
StreamMusic random
set Choosing to 3
return
endif
elseif (Choosing == 3)
if (button == 0)
StreamMusic "Data\Music\Eydis\Lied_1.mp3"
elseif (button == 1)
StreamMusic "Data\Music\Eydis\Lied_2.mp3"
elseif (button == 2)
StreamMusic "Data\Music\Eydis\Lied_3.mp3"
elseif (button == 3)
StreamMusic "Data\Music\Eydis\Lied_4.mp3"
elseif (button == 4)
StreamMusic "Data\Music\Eydis\Lied_5.mp3"
endif
set Choosing to 0
Endif
End
Begin menuMode
If (Choosing == -1)
MessageBox "Was möchtet ihr tun?", "Ablegen", "Musik auswählen", "Fertig"
set Choosing to 1
return
elseif (Choosing == 1)
set button to GetButtonPressed
if (button== -1)
return
elseif (button == 0)
Set Choosing to 0
DropMe
elseif (button == 1)
Set Choosing to -2
elseif (button == 2)
Set Choosing to 0
endif
Endif
If (Choosing == -2)
MessageBox "Welche Musik möchtet ihr hören?", "Lied 1", "Lied 2", "Lied 3", "Lied 4", "Lied 5", "Zurück", "Abbrechen"
set Choosing to 2
return
elseif (Choosing == 2)
set button to GetButtonPressed
if (button == -1)
return
elseif (button == 5)
Set Choosing to -1
elseif (button == 6)
Set Choosing to 0
else
StreamMusic random
set Choosing to 3
return
endif
elseif (Choosing == 3)
if (button == 0)
StreamMusic "Data\Music\Eydis\Lied_1.mp3"
elseif (button == 1)
StreamMusic "Data\Music\Eydis\Lied_2.mp3"
elseif (button == 2)
StreamMusic "Data\Music\Eydis\Lied_3.mp3"
elseif (button == 3)
StreamMusic "Data\Music\Eydis\Lied_4.mp3"
elseif (button == 4)
StreamMusic "Data\Music\Eydis\Lied_5.mp3"
endif
set Choosing to 0
Endif
End
@ Eydis: Wie Kahmul zitiert hat, du musst erst StreamMusic Random ausführen und 1 frame später die eigentliche Musik abspielen. Ich optimiere mal den Script etwas und passe es so an, wie es funktionieren sollte.
Code:Scn AAAMusikWürfelScript Short Choosing short button Begin onActivate player if Choosing == 0 set Choosing to -1 endif end Begin onEquip player if Choosing == 0 set Choosing to -1 endif end Begin gameMode If (Choosing == -1) MessageBox "Was möchtet ihr tun?", "Nehmen", "Musik auswählen", "Fertig" set Choosing to 1 return elseif (Choosing == 1) set button to GetButtonPressed if (button== -1) return elseif (button == 0) Activate Set Choosing to 0 elseif (button == 1) Set Choosing to -2 elseif (button == 2) Set Choosing to 0 endif Endif If (Choosing == -2) MessageBox "Welche Musik möchtet ihr hören?", "Lied 1", "Lied 2", "Lied 3", "Lied 4", "Lied 5", "Zurück", "Abbrechen" set Choosing to 2 return elseif (Choosing == 2) set button to GetButtonPressed if (button == -1) return elseif (button == 5) Set Choosing to -1 elseif (button == 6) Set Choosing to 0 else StreamMusic random set Choosing to 3 return endif elseif (Choosing == 3) if (button == 0) StreamMusic "Data\Music\Eydis\Lied_1.mp3" elseif (button == 1) StreamMusic "Data\Music\Eydis\Lied_2.mp3" elseif (button == 2) StreamMusic "Data\Music\Eydis\Lied_3.mp3" elseif (button == 3) StreamMusic "Data\Music\Eydis\Lied_4.mp3" elseif (button == 4) StreamMusic "Data\Music\Eydis\Lied_5.mp3" endif set Choosing to 0 Endif End Begin menuMode If (Choosing == -1) MessageBox "Was möchtet ihr tun?", "Ablegen", "Musik auswählen", "Fertig" set Choosing to 1 return elseif (Choosing == 1) set button to GetButtonPressed if (button== -1) return elseif (button == 0) Set Choosing to 0 DropMe elseif (button == 1) Set Choosing to -2 elseif (button == 2) Set Choosing to 0 endif Endif If (Choosing == -2) MessageBox "Welche Musik möchtet ihr hören?", "Lied 1", "Lied 2", "Lied 3", "Lied 4", "Lied 5", "Zurück", "Abbrechen" set Choosing to 2 return elseif (Choosing == 2) set button to GetButtonPressed if (button == -1) return elseif (button == 5) Set Choosing to -1 elseif (button == 6) Set Choosing to 0 else StreamMusic random set Choosing to 3 return endif elseif (Choosing == 3) if (button == 0) StreamMusic "Data\Music\Eydis\Lied_1.mp3" elseif (button == 1) StreamMusic "Data\Music\Eydis\Lied_2.mp3" elseif (button == 2) StreamMusic "Data\Music\Eydis\Lied_3.mp3" elseif (button == 3) StreamMusic "Data\Music\Eydis\Lied_4.mp3" elseif (button == 4) StreamMusic "Data\Music\Eydis\Lied_5.mp3" endif set Choosing to 0 Endif End
if
if
else
endif
endif
else
if
endif
if
if
else
endif
else
if
endif
endif
SCN Möp
Short Closed
Begin OnTriggerActor Player
if(closed == 0)
<wandRef>.playgroup backward, 0
set closed to 1
endif
end
scn AWDEisDungeonTor01ClosedScript
Short Closed
Begin OnTriggerActor Player
if(closed == 0)
AWDEisDungeonTor01ref.playgroup backward, 0
set AWDEisDungeonTor01ref.closed to 1
set closed to 1
endif
end