so ja ich releas es als code und compilte exe^^ hab jetzt das ganze script überarbeitet nach dem system..
und eagly glaub mr es ist reiner schrott und dauert nur ne minute oder viel weniger ich kenns und klicke mich in 10 sec durch XD erwartet nix.. wenn ich bock hab, erweiter ich es.. aber nach dem gleichen schema
PHP Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=..\..\Downloads\speech-balloon-white-a.ico
#AutoIt3Wrapper_outfile=Abenteuerspiel.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.6.1
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
$kampfstufe = 1
ToolTip("Level:"&$kampfstufe,0,0)
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Abenteuerspiel = GUICreate("Abenteuerspiel", 625, 445, 190, 234)
$Lueberschrift = GUICtrlCreateLabel("Das große Abenteuer beginnt!", 56, 24, 541, 52)
GUICtrlSetFont(-1, 30, 400, 0, "MS Sans Serif")
$Pheld = GUICtrlCreatePic("C:\Users\Jan\Pictures\abenteuerbilder\knappe.gif", 32, 112, 145, 265, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Label1 = GUICtrlCreateLabel("Das bist du! Ein kleiner Möchtegernheld... Aber das kann sich ändern!", 224, 120, 340, 17)
$Label2 = GUICtrlCreateLabel("Erlebe dieses Abenteuer und werde zum richtigen Helden!", 224, 152, 277, 17)
$Label3 = GUICtrlCreateLabel("Kämpfe gegen mächtige Gegner und werde stärker und stärker!", 224, 184, 304, 17)
$Bstart = GUICtrlCreateButton("Stürz dich ins Abenteuer", 352, 320, 161, 57, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Geschichte = GUICreate("Geschichte", 405, 279, 327, 279)
$Lueberschrift = GUICtrlCreateLabel("Geschichte", 80, 24, 205, 52)
GUICtrlSetFont(-1, 30, 400, 0, "MS Sans Serif")
$Ltext = GUICtrlCreateLabel("Du gelangst auf der suche nachAbenteuern zu einer dunklen Höhle, in der es viele ", 8, 88, 397, 17)
$Ltext2 = GUICtrlCreateLabel("Monster gibt,die du töten willst.", 8, 112, 149, 17)
$Ltext3 = GUICtrlCreateLabel("Wagemutig gehst du hinein.Es ist dunkel , aber du gehst weiter.", 8, 136, 304, 17)
$Bweiter = GUICtrlCreateButton("Weiter", 80, 208, 201, 41, $WS_GROUP)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Werte = GUICreate("Werte", 625, 445, 192, 124)
$Label1 = GUICtrlCreateLabel("Deine Werte", 192, 16, 229, 52)
GUICtrlSetFont(-1, 30, 400, 0, "MS Sans Serif")
$Lkampfstufe = GUICtrlCreateLabel("Level", 32, 96, 57, 17)
$Lkampfstufewert = GUICtrlCreateLabel($kampfstufe, 144, 96, 10, 17)
$Bweiter2 = GUICtrlCreateButton("Weiter", 264, 336, 161, 49, $WS_GROUP)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Fgoblin = GUICreate("Goblin", 625, 445, 192, 128)
$Pic1 = GUICtrlCreatePic("C:\Users\Jan\Pictures\abenteuerbilder\goblin_officer.jpg", 24, 88, 193, 297, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Lmonster1 = GUICtrlCreateLabel(" Goblin Level 1 !!!", 192, 16, 227, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Bkampf = GUICtrlCreateButton("kämpfen", 280, 128, 169, 49, $WS_GROUP)
$Bfliehen = GUICtrlCreateButton("fliehen", 280, 232, 169, 49, $WS_GROUP)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Fweitergehen = GUICreate("Weitergehen", 625, 445, 192, 124)
$Label1 = GUICtrlCreateLabel("Jetzt musst du dich entscheiden.. der Weg geht links und rechts weiter...", 12, 24, 608, 28)
GUICtrlSetFont(-1, 15, 400, 0, "MS Sans Serif")
$Blinks = GUICtrlCreateButton("LINKS", 72, 200, 161, 57, $WS_GROUP)
$Brechts = GUICtrlCreateButton("RECHTS", 376, 200, 169, 57, $WS_GROUP)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Fork = GUICreate("Ork", 625, 445, 192, 124)
$Lork = GUICtrlCreateLabel("Ork Level 3", 184, 16, 205, 52)
GUICtrlSetFont(-1, 30, 400, 0, "MS Sans Serif")
$Pic1 = GUICtrlCreatePic("C:\Users\Jan\Pictures\abenteuerbilder\ork.jpg", 56, 88, 177, 265, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Bkampfork = GUICtrlCreateButton("kämpfen", 312, 96, 169, 65, $WS_GROUP)
$Bfliehenork = GUICtrlCreateButton("in vorherigen Raum fliehen", 312, 232, 169, 65, $WS_GROUP)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Fspinne = GUICreate("Spinne", 625, 445, 192, 124)
$Lspinne = GUICtrlCreateLabel("Spinne Level 2", 184, 16, 268, 52)
GUICtrlSetFont(-1, 30, 400, 0, "MS Sans Serif")
$Pic1 = GUICtrlCreatePic("C:\Users\Jan\Pictures\abenteuerbilder\spider.jpg", 40, 88, 225, 241, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Bkampfspinne = GUICtrlCreateButton("kämpfen", 312, 96, 169, 65, $WS_GROUP)
$Bfliehensp = GUICtrlCreateButton("in vorherigen Raum fliehen", 312, 232, 169, 65, $WS_GROUP)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Fende = GUICreate("Ende", 625, 445, 192, 124)
$Pic1 = GUICtrlCreatePic("C:\Users\Jan\Pictures\abenteuerbilder\ritter_jpg.jpg", 24, 56, 321, 353, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Label1 = GUICtrlCreateLabel("Herzlichen Glückwunsch!! ", 144, 8, 316, 36)
GUICtrlSetFont(-1, 20, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Du bist jetzt ein wahrer Held!", 360, 216, 242, 28)
GUICtrlSetFont(-1, 15, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("(C) By Me", 472, 408, 50, 17)
$Button1 = GUICtrlCreateButton("Exit", 416, 288, 81, 41, $WS_GROUP)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
While 1
$msg = GUIGetMsg(1)
Switch $msg[1]
Case $Abenteuerspiel
Switch $msg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Bstart
GUISetState(@SW_HIDE,$Abenteuerspiel)
GUISetState(@SW_SHOW,$Geschichte)
EndSwitch
Case $Geschichte
Switch $msg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Bweiter
GUISetState(@SW_HIDE,$Geschichte)
GUISetState(@SW_SHOW,$Werte)
EndSwitch
Case $Werte
Switch $msg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Bweiter2
GUISetState(@SW_HIDE,$Werte)
GUISetState(@SW_SHOW,$Fgoblin)
EndSwitch
Case $Fgoblin
Switch $msg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Bfliehen
MsgBox(1,"Feigling","Du wolltest Abenteuer bestehen und traust dich nicht zu kämpfen! Das Spiel endet hier!")
Exit
Case $Bkampf
If $kampfstufe >1 Or $kampfstufe=1 Then
$kampfstufe=2
ToolTip("Level:"&$kampfstufe,0,0)
MsgBox(1,"Geschafft","Du hast den Goblin besiegt und bist ein Level up!!")
EndIf
GUISetState(@SW_HIDE,$Fgoblin)
GUISetState(@SW_SHOW,$Fweitergehen)
EndSwitch
Case $Fweitergehen
Switch $msg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Blinks
GUISetState(@SW_HIDE, $Fweitergehen)
GUISetState(@SW_SHOW, $Fork)
Case $Brechts
GUISetState(@SW_HIDE, $Fweitergehen)
GUISetState(@SW_SHOW, $Fspinne)
EndSwitch
Case $Fork
Switch $msg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Bkampfork
If $kampfstufe >3 Or $kampfstufe=3 Then
$kampfstufe=4
ToolTip("Level:"&$kampfstufe,0,0)
MsgBox(1,"Geschafft","Du hast den Ork besiegt und bist ein Level up!!")
Else
MsgBox(1,"Verloren","Du bist gestorben! das Spiel ist vorbei!")
Exit
EndIf
GUISetState(@SW_HIDE, $Fork)
GUISetState(@SW_SHOW,$Fende)
Case $Bfliehenork
GUISetState(@SW_SHOW, $Fweitergehen)
GUISetState(@SW_HIDE, $Fork)
EndSwitch
Case $Fspinne
Switch $msg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Bkampfspinne
If $kampfstufe >2 Or $kampfstufe=2 Then
$kampfstufe=3
ToolTip("Level:"&$kampfstufe,0,0)
MsgBox(1,"Geschafft","Du hast die Spinne besiegt und bist ein Level up!!")
Else
MsgBox(1,"Verloren","Du bist gestorben! das Spiel ist vorbei!")
Exit
EndIf
GUISetState(@SW_SHOW, $Fweitergehen)
GUISetState(@SW_HIDE, $Fspinne)
Case $Bfliehensp
GUISetState(@SW_SHOW, $Fweitergehen)
GUISetState(@SW_HIDE, $Fspinne)
EndSwitch
Case $Fende
Switch $msg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Exit
EndSwitch
EndSwitch
WEnd