Is there a way to convert string to number?

Started by DominicentekCZ on

Topic category: User side tutorials

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to convert string to number?
Sun, 10/20/2019 - 14:31 (edited)

 Take a input field in inventory for example. Player must set there a number. Then, create explosion of power entered in the input field. But there is a problem. Explosion power is NUMBER. Number entered in input field is STRING. So, the power value won't take the number entered in the input field. So it needs to be converted. But how?

Edited by DominicentekCZ on Sun, 10/20/2019 - 14:31
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Possibly in Math: number…
Sun, 10/20/2019 - 15:21

Possibly in Math: number from text.

Joined May 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I believe this is what you…
Fri, 11/01/2019 - 21:54

I believe this is what you are looking for.