0 votes

By scriptable objects I am referring to doing this:

And I am thinking about a system for creating spells/powers that uses scriptable objects for ease of editing skills as shown in the video above. What I want is something similar to what you have in RPG Maker where you can enter a damage formula for it to use into a box.
Is there anyway to do this with Godot? Or would I be better off making various functions to be called that have different formulas, and just have an export var with a list of the formulas?

Godot version 3.4
in Engine by (28 points)

1 Answer

0 votes

Someone already did this. Here's his/her example video.

by (526 points)

Looks cool! But I didn't see any links to download or view it, and google didn't turn it up.

Yes, that example is private, I can't get that project neither. It just show that someone can do it in Godot.
If you want do it yourself, here are some tips:
1.Use node LineEdit to get user input.
2.Use class Expression to deal with the formula you got from user input. If you don't know what is Expression, look at this page.

I did not know about the .parse. I was thinking of using match and STRING.split() to break down a string function. Thank you very much!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.