Jump to content


Photo

[Ace] Event Wrapper demo

Event Creation Script

  • Please log in to reply
2 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Members
  • 2,559 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 10 July 2012 - 03:11 PM

Update

http://forums.rpgmakerweb.com/index.php?/topic/3148-event-wrapper/

Spoiler

Edited by Tsukihime, 11 July 2012 - 11:27 AM.

himeworks011.png
My scripts.

Avatar by ShinGamix

#2 Levi

Levi

    Advanced Member

  • Members
  • 657 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 10 July 2012 - 03:25 PM

Dear jesus yes!

-unlimited, arbitrary page conditions (including custom page conditions)
-unlimited choice options (not just 4), because you have full control over the branching logic
-unlimited pages
-unlimited self-switches without having to use odd script calls

:wub:

Wanderer's Studies - My Main Project
My Blog

My Art

 

If people weren't stupid, we'd be out of jobs.


#3 Tsukihime

Tsukihime

    Advanced Member

  • Members
  • 2,559 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 10 July 2012 - 04:22 PM

I have implemented choice selection.

Posted Image

You kind of have to match branch opens with branch ends, and we know how easy it is to mess up when it comes to parentheses matching.

Ideally, there should be a way for you to create branches without having to explicitly tell the engine to build the necessary indent structure.

I am currently rewriting it to use ruby's block syntax to make it so much cleaner

event.branch_option(1) {
  event.add_command...
}
event.branch_option(2) {
  event.add_command...
}

This is so much cleaner, but I will have to see how to do it first.

Here's a test script for the choices to see how it's done.
Place it below Event Tester.

It demonstrates a simple multi-option choice, and then shows how to nest choices.
It's really ugly at the moment and easy to mess up, but it serves as a comparison between different implementations.

Spoiler

Edited by Tsukihime, 10 July 2012 - 04:30 PM.

himeworks011.png
My scripts.

Avatar by ShinGamix





Also tagged with one or more of these keywords: Event, Creation, Script

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users