Is there a way to convert string to number?

Started by DominicentekCZ on

Topic category: User side tutorials

Last seen on 20:28, 25. Jan 2021
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
Last seen on 20:25, 8. May 2020
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.

Last seen on 04:55, 23. Dec 2019
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.