🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Flexibility through scripting
Hello!
I hope this is the correct forum for my question.
Lets start... i am developing an e-learning programm for handicaped kids with a friend. Everything works great but now we need to make it more felxible.
For instance we have an function which generates from strings numbers.
GenerateNumber("TH") --> 1800, 8400, 6900,...
GenerateNumber("TE") --> 7004, 2005, 8001,...
Now there are higher functions like AddAndSubtract.
AddAndSubtract("ZE", "E", "HE")
-->
95 + 8 = 103 | 108 - 9 = 99
As you see here AddAndSubtract calls GenerateNumber. Now i need a solution for these problems.
1. Defining the range of a number:
GenerateNumber("TH") [Range between 1000 and 3000]--> 1800, 2300, 1900,...
2. Defining the order of the calulations:
AddAndSubtract("ZE{a/b}", "E{b/c}", "HE{c/a}")
-->
a b c a b c
95 + 8 = 103 | 108 - 99 = 9
Is there an solution witch uses a scripting language? Or what would you do?
Thanks, Christian
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement