playMaker

Author Topic: Set Int Value - No Globals?  (Read 5328 times)

mathius777

  • Playmaker Newbie
  • *
  • Posts: 38
Set Int Value - No Globals?
« on: August 31, 2013, 03:07:39 PM »
So I can specify a global variable with "Set Float Value", but with "Set Int Value", I cannot specify any global variables, ONLY local variables. Why this is?

mathius777

  • Playmaker Newbie
  • *
  • Posts: 38
Re: Set Int Value - No Globals?
« Reply #1 on: August 31, 2013, 03:10:24 PM »
Also, there is no "Int Subtract" for some reason, only for floats. Why no love for ints? lol.

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: Set Int Value - No Globals?
« Reply #2 on: August 31, 2013, 03:20:07 PM »
 I can't answer your first question, but your second:

there IS actually an "Int Substract"-Action, but it's called "Int Operator"
this action allows you to choose from different mathematic operations (add, substract, divide, multiplay, min, max)

mathius777

  • Playmaker Newbie
  • *
  • Posts: 38
Re: Set Int Value - No Globals?
« Reply #3 on: August 31, 2013, 03:23:35 PM »
Ah thanks, that is helpful. But I am still very curious as to the first part. Hopefully an admin can answer:)

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: Set Int Value - No Globals?
« Reply #4 on: August 31, 2013, 03:37:23 PM »
I tested it right now. I created a global Variable "i_test" and made a state and the action "Set Int Value", I could select the global i_test-Variable from the Drop-Down-Menu.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Set Int Value - No Globals?
« Reply #5 on: August 31, 2013, 03:41:42 PM »
Set Int Value for globals works fine for me as well.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Set Int Value - No Globals?
« Reply #6 on: August 31, 2013, 04:11:26 PM »
Ah thanks, that is helpful. But I am still very curious as to the first part. Hopefully an admin can answer:)

What version of Playmaker are you using? 1.7.2 was up briefly but patched the same day with 1.7.3. If you have 1.7.2 please update to 1.7.3.

mathius777

  • Playmaker Newbie
  • *
  • Posts: 38
Re: Set Int Value - No Globals?
« Reply #7 on: August 31, 2013, 04:40:53 PM »
Lol, 1.6.0f5. Seems I am a little out of date:)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Set Int Value - No Globals?
« Reply #8 on: August 31, 2013, 04:45:18 PM »
Yeah just a little! Remember to backup projects when importing updates. Always a good idea in Unity, not just with Playmaker!!

mathius777

  • Playmaker Newbie
  • *
  • Posts: 38
Re: Set Int Value - No Globals?
« Reply #9 on: August 31, 2013, 04:52:34 PM »
Random follow up. Now whenever I click an object, the playmaker editor makes me select "Edit Prefab" or "Edit Instance" before I can edit. Is there a way to set a default behavior?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Set Int Value - No Globals?
« Reply #10 on: August 31, 2013, 04:59:25 PM »
Yes, in preferences: Confirm editing prefab instances.

But if you have multiple instances and are using Apply, please be aware of this bug:
http://hutonggames.com/playmakerforum/index.php?topic=4739.0

Right now it's not a good idea to change the graph and action data in multiple instances and then try to apply those changes back to the prefab parent.

mathius777

  • Playmaker Newbie
  • *
  • Posts: 38
Re: Set Int Value - No Globals?
« Reply #11 on: August 31, 2013, 10:39:10 PM »
Sorry, I can't seem to find where the preferences are.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Set Int Value - No Globals?
« Reply #12 on: September 04, 2013, 11:56:37 AM »
It's a button in the lower right corner of the PlayMaker editor window.