I do have a problem, though. I am using DSE, (alongside this chunk of coding, if that affects it). What I'm trying to do is make events appear in certain areas based on self-made variables. In this case affection points.
Lemme see if I can explain it better. I'm horrid with words and explanations.
Let's say I have to events for my day planner's option 'office':
Code: Select all
$ event("office1", "act == 'office'", event.choose_one('office'), priority=200)
$ event("office2", "act == 'office'", event.choose_one('office'), priority=200)
I want an event to activate in 'office' only after gf has 5 affection points or more. In coding terms:
Code: Select all
$ gf >= 5
This is what I currently have for the event itself:
Code: Select all
init:
$ event("gfNAME", "act == 'office'", event.once(), event.depends('GB'), priority=150)
label gfNAME:
"DIALOGUE"
menu:
"OPTION 1.":
jump gfbad1
"OPTION 2.":
jump gfgood1
label gfbad1:
"DIALOGUE"
$ gf -= 2
return
label gfgood1:
"DIALOGUE"
$ gf +=2
return
Running this event on its own is fine in testing. It works with no problems. I just want it to ONLY work after gf's variable reaches 5 or higher, and only once. Whenever I try to add the variable as a condition, however, it never runs. No errors. It just won't run at all.
I can't figure out the proper code combination to make this possible. Can anyone help me out?
If you need more information, I'd be happy to try and provide it!