playMaker

Author Topic: Store number result help  (Read 2188 times)

nabilfx

  • Full Member
  • ***
  • Posts: 186
Store number result help
« on: April 22, 2015, 09:32:17 AM »
I have a Select Random String with 10 random number of a 3 life game. I would like to store the total result of this 3 life note at the end of the game. It is possible?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Store number result help
« Reply #1 on: April 22, 2015, 09:34:54 AM »
Can you explain it differently? I don't understand what you are trying to do.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Store number result help
« Reply #2 on: April 22, 2015, 10:24:02 AM »
ok, im not a programer, so i did the next. My game is a rodeo riding with 8 second each life, total of 3 life the game have.

I create and FSM with a Wait action of 8 second, then go to another state with a action (Select Random String) them i put 20 String, with values from 20 to 60 between this 20 String. So after 8 second a new random value predeterminated, appear on a Set GUI Text.

I would like to now if i can get the result of this 3 life random value, and at the end of the game, it shows the total amount of the 3 life value.

Lets say the first riding, get 27. The second riding get 31. The tirth riding get 56. I would like if it possible to get the total sum of the 3 life random values, 114.

Can u show me a way to do that. thanks
« Last Edit: April 22, 2015, 05:11:49 PM by nabilfx »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Store number result help
« Reply #3 on: April 22, 2015, 10:29:42 AM »
Well you are using Strings to store the numbers so you could use Convert String To Float to turn them into numbers that you can then add up with the Float Add Multiple action.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Store number result help
« Reply #4 on: April 22, 2015, 10:40:15 AM »
In my playmaker action,  Convert String To Float is not present,  just this one, Convert Float To String. Is the same?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Store number result help
« Reply #5 on: April 22, 2015, 10:43:12 AM »
Sorry, String to int.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D