Playmaker Forum

PlayMaker News => General Discussion => Topic started by: mn6000 on November 25, 2016, 07:27:33 PM

Title: Help with managing items with Playmaker
Post by: mn6000 on November 25, 2016, 07:27:33 PM
As I add new items  to the game I  have to manually update 20 or more states with new events and actions. This becomes tiresome and error prone so I'm looking for an alternative.

Even with templates there are a lot of unnecessary manual steps.

I've looked int custom actions which work great but I can't figure out how to assign a specific string to a pulldown for an fsm event or generate an event using editor commands or at runtime.

Has anyone encountered automation challenges like this with PM? How did you solve them?

Here's an example of the fsm state with the int switch I'm trying to extend.

Thanks.
Title: Re: Help with managing items with Playmaker
Post by: djaydino on November 26, 2016, 04:54:03 PM
Hi,
You could work with some arrays, depending on what your next states do.
i am recently rebuilding an old game i had my level manager with 60 level made with 60 transitions.
(https://cdn.discordapp.com/attachments/170542895512682496/245607337350397952/unknown.png)

now i have only this :

(https://cdn.discordapp.com/attachments/170542895512682496/245607518192140288/unknown.png)

You will need this custom action 'uGuiGetSelectedGameObject' from the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)

I made a quick video explaining a bit more :