Saturday, May 31, 2014

Working on the new project (and Reference Variable demo)

Right now, I'm putting in some time on my new project and thought I'd share some of the game's structure and point out how I'm using some reference variables.

A bit of my game structure, the player get X actions before the world continues on.  The thing is I want to continue the storyline after the player finishes taking their actions.  But those actions are not unique to that point in the storyline.  Furthermore, some actions (such as Examine) will not count for the passage of time.

So the question is how to set it up so the storyline will continue smoothly.  I'm using timers to break out the story blocks from the rest of the game.  But then how do I run that specific timer after an action.  How will the action know to run StoryTimerA or StoryTimerB?

This is where reference variables come into play.  I created a new variable called NextStoryTimer.  This just holds the name of the timer I want to run when the story continues.  When it's time to continue the story, I execute the timer [v: NextStoryTimer].  After running StoryTimerA, the next story block will be StoryTimerB.  To set that up, I just change the NextStoryTimer variable to StoryTimerB within the StoryTimerA code.


Two things though.  First, NextStoryTimer needs to be initially set to an actual timer.  RAGS will be annoyed if it's not.  Second, there's no error checking on the NextStoryTimer variable.  If you change the variable to something else that's not a timer, RAGS won't find the problem.  That bug will only be noticeable when it's actually played.

A quick demo.

4 comments:

  1. glad to see you're working hard. Thoroughly enjoyed the start to Seraphims Javelin. Couple of questions about it- first have you moved on from it, or can another chapter be expected in the future? Second, do you have a list of the extended erotic sequences that can be unlocked and what needs to be done to explore them all? I got the nurse and then another dream.

    You have a following that is glad to see you're still taking on projects! Keep it up!

    ReplyDelete
  2. SJ is temporarily on hold. I plan to get back to it at some point. It's definitely a priority for me. SJ and my new project are the two I really want to work on. No eta yet for a new chapter. No list, not much is actually accessible anyways.

    Thanks for the interest. Nothing encourages me more than knowing people want to play my games.

    ReplyDelete
  3. do you have a list of games/projects that you have completed that can be played?

    ReplyDelete
  4. I lost most of them when my hard drive died. I found some but I'm certain I didn't get all of them. Most of them were done for contests and is only "completed" due to the deadlines.

    ReplyDelete