playMaker

Author Topic: How to write a PlayMaker extension/add-on?  (Read 2510 times)

alexlange

  • Playmaker Newbie
  • *
  • Posts: 16
How to write a PlayMaker extension/add-on?
« on: February 01, 2014, 10:24:28 PM »
Hi
I see lots of add-ons available in manual page, is there any tutorial about how to make it, where should I start? Thank you.

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
Re: How to write a PlayMaker extension/add-on?
« Reply #1 on: February 02, 2014, 07:13:30 AM »
Just open up a action that is already provided with PlayMaker. Study how it works. Strip it down to the very base so that it just Starts and Finishes. Then go find a feature that PlayMaker does not currently contain. Add the code to your action.  If you cant do this you probably cannot make any new custom actions.

You could still make a PlayMaker project of some kind to teach people how to do something complicated. Or some FSMs that make things easier.
« Last Edit: February 02, 2014, 07:15:07 AM by Marsh »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to write a PlayMaker extension/add-on?
« Reply #2 on: February 03, 2014, 07:36:40 AM »
sigh...

 I really want to start a wiki page on action scripting. It's not difficult at all, just some basic things to cover and you are good to go, but never seem to find the time to do it!

As Marsh said, it's really a matter of opening existing actions and copy pasting... but yes, a proper document would be best of course.

Bye,

 Jean

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: How to write a PlayMaker extension/add-on?
« Reply #3 on: February 03, 2014, 01:53:07 PM »
There are also some API docs here:
https://hutonggames.fogbugz.com/default.asp?W127

And some docs on writing custom actions:
https://hutonggames.fogbugz.com/default.asp?W166

But we could definitely use more docs/walkthroughs....