playMaker

Author Topic: [SOLVED]Int value from multiple variables  (Read 2370 times)

mmzbr

  • Playmaker Newbie
  • *
  • Posts: 40
[SOLVED]Int value from multiple variables
« on: June 24, 2014, 02:09:29 PM »
I´m working in a rpg game made 100% with playmaker but now I have issues to control player attributes like armor.

I have some items that player can buy or get that raise stats. I have an INT variable called player_def to store player defense stats. But there´s a lot of items that adds defense in different slots and I need to set all those values in one variable (player_def).

I need help to create a playmaker fsm for this, INT Operator doesnt work.
« Last Edit: June 24, 2014, 02:54:03 PM by mmzbr »

mmzbr

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Int value from multiple variables
« Reply #1 on: June 24, 2014, 02:11:00 PM »
Here´s a preview of the game:
« Last Edit: June 24, 2014, 02:13:07 PM by mmzbr »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Int value from multiple variables
« Reply #2 on: June 24, 2014, 02:43:43 PM »
You need to get the values of all the items that are equipped and add them to the player_def variable. It depends on how your inventory system is setup to get those variables but once you have a consistent way of getting them its just a matter of adding them all to the total value that you're using for damage calculations.

I think there is an Int Add Multiple action on the forum.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

mmzbr

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Int value from multiple variables
« Reply #3 on: June 24, 2014, 02:50:01 PM »
Thanks for the fast reply I´ve located this custom action, time to test it  ;D

You guys are awesome.

mmzbr

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Int value from multiple variables
« Reply #4 on: June 24, 2014, 02:53:46 PM »
That worked like a charm! Issue solved!