I'm pretty new at programming within the Galaxy Editor... I'm just experimenting with lots of different functions and have created a basic one-player RPG and I'm experimenting with banks. When the map initializes, a dialog pops up asking to start a new game or if there is a previous save, to load said previous save if one exists. The dialog works fine.
However, whenever I choose to "load" my saved hero & some basic variables, the "end of campaign" screen pops up and there's no way to remove it. I believe my map is still active in the background, however I can't access it. I've spent hours staring at the few actions that are utilized when loading and I can't figure out why that damn screen keeps popping up! Can anybody review my code and let me know if I screwed up or something?
PS - There are no triggers that enact following the conclusion of the pasted trigger except one that enables/disables UI stuff (that trigger is shown also).
PS 2 - even if I take out all the events within the "load" trigger, I still receive the screen.
Here is the (updated) code I'm using (same problem) in non-image format:
(Trigger for Dialog)
CreateOpen/NewDialogEventsLocalVariablesConditionsActionsDialog-CreateaNon-modaldialogofsize(600,400)at(0,0)relativetoCenterofscreenVariable-SetSaveDialog=(Lastcreateddialog)Dialog-HidethebackgroundimageofSaveDialogDialog-Createanimagefordialog(Lastcreateddialog)withthedimensions(300,300)anchoredtoTopRightwithanoffsetof(5,0)settingthetooltipto"Create New Save"usingtheimageEditorData\Images\ToolbarNew.tgaasaNormaltypewithtiledsettofalsetintcolorWhiteandblendmodeNormalDialog-CreateabuttonfordialogSaveDialogwiththedimensions(300,100)anchoredtoBottomRightwithanoffsetof(0,0)settingthetooltipto""withbuttontext"New Game "andthehoverimagesetto""Variable-SetNewBtn=(Lastcreateddialogitem)Dialog-Createanimagefordialog(Lastcreateddialog)withthedimensions(300,300)anchoredtoTopLeftwithanoffsetof(5,0)settingthetooltipto"Open Previous Save "usingtheimageAssets\Textures\ui-editoricon-general_open.ddsasaNormaltypewithtiledsettofalsetintcolorWhiteandblendmodeNormalDialog-CreateabuttonfordialogSaveDialogwiththedimensions(300,100)anchoredtoBottomLeftwithanoffsetof(0,0)settingthetooltipto""withbuttontext"Load Previous"andthehoverimagesetto""Variable-SetLoadBtn=(Lastcreateddialogitem)Dialog-DisableLoadBtnfor(Allplayers)Dialog-ShowSaveDialogfor(Allplayers)Dialog-ShowNewBtnfor(Allplayers)General-If(Conditions)thendo(Actions)elsedo(Actions)If(BankcBnakhas"ZeeLocation"insection"one")==trueThenDialog-EnableLoadBtnfor(Allplayers)ElseDialog-ShowLoadBtnfor(Allplayers)
And here is the result of that trigger on the "on Load" click:
I attached the actual file, maybe someone can help me? I appreciate any help, thanks :) I'm kind of anal when it comes to testing out new functions so this map is getting quite annoying when I'm trying to save my progress at a certain point and then upon trying to check out a new implemented action/element of the game I have to start from square one all over again lol.
I'm pretty new at programming within the Galaxy Editor... I'm just experimenting with lots of different functions and have created a basic one-player RPG and I'm experimenting with banks. When the map initializes, a dialog pops up asking to start a new game or if there is a previous save, to load said previous save if one exists. The dialog works fine.
However, whenever I choose to "load" my saved hero & some basic variables, the "end of campaign" screen pops up and there's no way to remove it. I believe my map is still active in the background, however I can't access it. I've spent hours staring at the few actions that are utilized when loading and I can't figure out why that damn screen keeps popping up! Can anybody review my code and let me know if I screwed up or something?
PS - There are no triggers that enact following the conclusion of the pasted trigger except one that enables/disables UI stuff (that trigger is shown also). PS 2 - even if I take out all the events within the "load" trigger, I still receive the screen.
Open this image/View Image in Same Window
Open this image/View Image in Same Window
I appreciate any help - Thanks :)
Here is the (updated) code I'm using (same problem) in non-image format:
(Trigger for Dialog)
Trigger for (Detect Button Pressed)
And here is the result of that trigger on the "on Load" click:
I attached the actual file, maybe someone can help me? I appreciate any help, thanks :) I'm kind of anal when it comes to testing out new functions so this map is getting quite annoying when I'm trying to save my progress at a certain point and then upon trying to check out a new implemented action/element of the game I have to start from square one all over again lol.