playMaker

Author Topic: Set Global Variable from Variable  (Read 5093 times)

PET

  • Full Member
  • ***
  • Posts: 139
    • GamerPET
Set Global Variable from Variable
« on: May 10, 2016, 06:23:35 AM »
Hello there,

I have an object that when it's "initializing" it set's up 2 variables.
I want in an later state... to get those 2 variables and set them to some Global Variables.

How can I do this?

Also:
I know there is an action that is just a text... but I can't find it. How is it called?
It's an action that just has a text field where you can set up some text as info.

Thanks <3

EDIT:
-----------
I know that I can "Set Fsm Variable" ... but I don't want to set the variable of a FSM. I want to set a global variable.
« Last Edit: May 10, 2016, 06:44:35 AM by PET »
Technical Game Designer
www.GamerPET.com

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: Set Global Variable from Variable
« Reply #1 on: May 10, 2016, 07:39:59 AM »
Here you go dude:

http://jonathanoduffy.com/playmaker-forum-q-set-global-variable-variable

Hope it helps. If your have any questions let me know.
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

PET

  • Full Member
  • ***
  • Posts: 139
    • GamerPET
Re: Set Global Variable from Variable
« Reply #2 on: May 10, 2016, 11:03:58 AM »
he thanks. You managed to set me up on the right path. You didn't understood all the things I wanted but I did a pretty bad job explaining.

But as I said, you set me up on the right path:


My second request was the name of the action that... all it does it have a text fiend inside playmaker. Like a description, nothing else. It's just an action with a text box where you write stuff ... no string, no variables, just a text box.

Thanks
Technical Game Designer
www.GamerPET.com

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Set Global Variable from Variable
« Reply #3 on: May 10, 2016, 12:56:19 PM »
There is a Comment action in the Debug category. I think you're probably thinking of that...?

PET

  • Full Member
  • ***
  • Posts: 139
    • GamerPET
Re: Set Global Variable from Variable
« Reply #4 on: May 11, 2016, 04:18:12 AM »
Yeessss... it was Comment :D

EDIT:
Just an update to my previous screenshot... the variables have to be the other way around, like this:


I was like... why the hell my variables witch to NONE, is it because I use a template?

Nope.

Object Variable - is the variable you want to set the value, in my case my Global Variable
Object Value - is the value I want to apply to the global variable.

It looks like this during PlayMode:
« Last Edit: May 11, 2016, 04:32:03 AM by PET »
Technical Game Designer
www.GamerPET.com