Today I've done some work on RPCs and that Event Target Option of Host FSM inspired me which I've never used before. (I only use Target Game object FSM, never use other options even Broadcast All for intel safety.)
AND I FOUND A WAY OUT OF NESTED SUB FSM!!!
I did a 4 level nested Run FSM(Host FSM Run FSM call's template1, which called template2, which called template3). 2 mid-level sub-FSMs(template1&2)and the 1st Host FSM with a global transition called ABC and target another state which Get Event Properties. The last level sub-FSM(template3) send an event of ABC with event properties. Only the 3rd level nested FSM(template2) which is the sender's HOST FSM got the event and properties!!!
So Nested Template Systems could be made by Sending Event to Host FSM with Properties of Output Variables! The nested template system is just like Method() or Class() of C#. Now I see the potential of PlayMaker!
At last, there comes The Time of Template!
-------------------------------------------------------------------------------
15min later
-------------------------------------------------------------------------------
I've checked my template library, this Send Event to Host Event got a FLAW!
Cause ARRAY VARIABLE IS NOT SUPPORTED BY EVENT PROPERTIES!!!
I need to RUN an Array2String Converter Template in every sub-Templates that output Array Variables. And a String2Array Converter Template after the Host FSM's Get Event Properties Actions (not be RUM FSM but only by Paste Template which is not good for Update & Arrangement ).
Jean, the legend of PlayMaker Array and Hashtable
, will Event Properties supports Array in 1.8.4?