playMaker

Author Topic: Conditional Statements  (Read 13232 times)

amaranth

  • Full Member
  • ***
  • Posts: 172
Conditional Statements
« on: March 29, 2012, 02:22:50 PM »
When I got into making games, I started with RPG Maker XP. At the time, I didn't know what a finite-state machine was, but since working with playMaker, I now understand.

I see lots of similarities between the action system for playMaker and RPG Maker. In some ways, playMaker's system is more versatile, in some ways RPG Maker's system is more versatile. Coming from RPG Maker, there are a few things I think playMaker could implement to make it more versatile.

First, and most important on that list, is the ability to embed actions within conditional statements. In RPG Maker, this action was tremendously useful and I miss this very much in playMaker.

Here is an example usage of a conditional statement in RPG Maker. There are actually two here... a switch statement and an if/else statement.



In playMaker, if you want to use a conditional statement, you have a very small list of options. If embedding was implemented like above, I think this would allow endless possibilities for customization.

« Last Edit: March 29, 2012, 02:25:20 PM by amaranth »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Conditional Statements
« Reply #1 on: March 30, 2012, 02:58:12 PM »
Hi,

 If I Understand well, try with the following:

String switch action: https://hutonggames.fogbugz.com/default.asp?W455

Bye,

 Jean

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
Re: Conditional Statements
« Reply #2 on: March 30, 2012, 07:23:11 PM »
Cool, the string switch action would go well with my custom "any key store result as string" custom action

http://hutonggames.com/playmakerforum/index.php?topic=487.0