Hi again guys :3,
Here I am with another issue although I have a feeling that this one is quite small, but it is still bugging me a fair bit that it doesn't work.
My current set up of this event is that whenever I call the common event it asks the user if they are sure and if not then it is supposed to return the user to the initial choice. I am not familiar with how common events are read by the game but maybe my failing is assuming they act like a module in a script.
Anyways the way it (the common event) is set up is as follows:
---------------------------------------------------
Text: Are you sure?
Choice:
Yes: (Do nothing)
No: Jump to label (label name here)
End Choice
--------------------------------------------------
I have checked that the labels I use in the main event match but whenever ylu say no it does not return you to that label in the main script.
I am wondering if there is any fix in the current format as I want to use this cross game- since if it is the case that I accidentally hit choices then a player definitely would- and if not what is the most efficient way to implement it.
Many thanks in advance guys,
Liam290596
You cannot have a Jump to Label in a common event with the label in the calling event.
If you want it to loop until they say yes, do this:
Loop
Text: Are you sure?
Choice:
Yes: break loop
No: do nothing
End Choice
End Loop
Although that would be highly annoying - you're basically asking them if they're sure, and you're going to keep asking them until they say yes. I'm thinking maybe that's not really want you want to do.
You could simply turn a switch on with YES and turn it off with NO, and then in your calling event, do a conditional branch based on the value of the switch to see whether they said yes or no.
Unfortunately that would kind of defeat the purpose of an are you sure command, not being able to return to the original selection if you say no but it cycle the are you sure text. USing your loop idea I was wondering if this alternative would work?
Would the break loop cross over events or would that not be the case.
so the calling script looks like this
CALLING SCRIPT:
------------------------------------
blah blah blah
start loop
Question
Choice X
call 'are you sure' event (so if yes the loop is broken and the effects do their thing, but if no then it cycles to the start loop)
end loop
(choice X effects)
Choice Y
call 'are you sure' event
end loop
(choice Y effects)
Blah Blah Blah
------------------------------------------
COMMON EVENT SCRIPT:
------------------------------------------
Are you sure?
Choice
Yes
Break Loop
No
(Do nothing)
End choice
----------------------------------
Then the common event script has everything but the start loop, which is as follows:
Would that work or are break loops also restricted to the events?
Sorry for the horribly lazy pseudo script but it gives you the gist of what I am wanting.
Also as a complete sidenote, it may be because the only coding language I know a little bit about is fortran 90 (+ noob level = max)but it is quite frustrating that they dont talk to eachther as well as a module would to a main script.
Anyways thanks for your help guys in advance I will try out the setup outlined above and if it doesnt work then hopefully the maical forum gods like shaz can help and if it does I will also let the world know in case other people run into the same problem.
Liam290596
If the world could completely scratch my previous comment on this thread from the record that would be grand, unless there are those whom are curious about the intricacies of common events, but the utilisiation of a switch makes the whole thing work, and is something I admittedly never considered, thank you Shaz.
So for anyone who wants and are you sure choice intercept in your game this needs to be included in the event as follows:
MAIN EVENT:
----------------------------------------------------------------------------------------------
Label- (label name)
Question
Choice:
Choice A:
Run Are you sure (see below for that part of the event)
Condtional Branch
If (switch you define for the Y/N choice) is on then:
(Do nothing)
Else:
Jump to label (label name)
(Choicey consequences stuff)
Choice B: (same stuff etc.)
(after choicey event stuff)
-----------------------------------------------------------------------------------------------
COMMON EVENT:
------------------------------------------------------------------------------------------------
Are you sure?
Choice
Yes:
Switch (insert name here) ON
No:
Switch (same as above) OFF (the off is important if you plan to use this more than once so any No choices you use after allows you to jump back)
End Choice
-----------------------------------------------------------------------------------------------
I don't know if there is a better place to put this but at least it has been solved and hopefully people will look at it and understand and be able to utilise it or repurpose it to make their own games better :3
Thanks once again guys especially Shaz
Liam290596