Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
50 well, I just remembered something. Everything can easily be gained and stored, except I have no idea how I am going to change the functions to plain text >_<
Any ideas?
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
50 maybe I should have people write the "functions" like this
[[someCard.onCast =function(self,battle)
--code here
end]]

thaughts on that method?
Then to run the code I just let php execute the string as if it was lua code?
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
49 well, still your feed back would be helpful.
Don't look at the advanced stuff like making of classes as that won't be needed.
I am happy to see that the $ symbol is gone and it uses names like and instead of && those things would defiantly make it easier for people to use then vanilla php.
However I am not sure about the if's
Code:
if white_walkers.numbers < 500
fight_valiantly()
elif feeling_lucky
improvise()
else
run()
Due to the lack of either {} or then/end the language becomes more depended on white spaces then I would have liked. Maybe I can give users the option to write those and have my code just delete all those if they are not part of a string before it gets compiled into php?
also, I just noticed, elif. REALLY! the creator USED ELIF! IS writing 2 characters more really that hard?!?!
well, I guess that if I am going to allow users to write then/end I may as well give the option to write elseif ...
 

fowltief

New Member
Jul 29, 2019
42
0
1
50 looks easy enough.. I've done several programming lessons but can't seem to wrap my head around it.

Sent from my 0PJA2 using Tapatalk