I can write this myself, but I'm hoping to avoid reinventing the wheel over & over & over again. This will probably take me 20 painful, grueling hours, lol.
This is pseudo code showing what I need. The concept is rather simple.
Code: Select all
label start:
# player moved to alley50 via some function that returned a label
$ returnedLabelLocation = playerMovedHere
# label alley50
jump returnedLabelLocation
return
label alley50:
"you've arrived at alley 50.. you look around..."
#check for events
returnedEventLabel = checkForEvent("alley50")
if returnedEventLabel not blank then
jump returnedEventLabel #event50
else
#no events, player doesn't see anything going on and chooses to leave via navigation
return
label event50:
"You're being ambushed!!!"
return
init python:
# this is sloppy i know, but just want to show the flow
checkForEvents {
# should this be tied to the area or contain a list of every event in the game among all locations?
conditionList = (event01: label: event50, condition, condition, condition,
event02: label: event51, condition, condition, condition,
event03: label: event52, condition, condition, condition,
eventLabel = docheckAndReturnEventLabel
return eventLabel
}