- Jul 30, 2017
- 2,130
- 3,346
In code, you've moved to a new location. Now you need to check for events, of which there can be multiple event types that vary.
This is pseudo code of what I'm looking for.
This is pseudo code of what I'm looking for.
Code:
label start:
# navigation movement code returns alley50
jump alley50
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!!! shit!!"
return
init python:
# this is sloppy i know, but just want to show the flow
checkForEvents {
conditionList = (event01: label: event50, condition, condition, condition,
event02: label: event51, condition, condition, condition,
event03: label: event52, condition, condition, condition,
eventLabel = docheckAndReturnEventLabel
return eventLabel
}