Pros and Cons of Implementing a Scripting Language

  • Cr15py
    17th Oct 2010 Member 0 Permalink
    Ok so let's say we do make powder script. Here are the functions I think we should include:
    toxy(00,11) - a function to move a particle to a certain location
    partto(PT_FIRE/*particle name*/, 22/*temp*/, 3/*weight rating*/) - changes the current particle to the one defined
    istouching(PT_DMND/*particle name*/) - returns true if particle is touching a particle of the defined type, false if not
    delpart() - deletes this particle
    changetemp(12/*new temp*/) - changes particle temperature
    changepress(112.1/*new pressure*/) - changes particle pressure
    Other things:
    logical operators: >,<,==,!=
    datatypes: floating number, character array(these two should be all that's needed)

    If anyone has anymore ideas please say them.
  • Neospector
    17th Oct 2010 Member 0 Permalink
    cr15py
    Lol at the >,<
    But yeah that's basically ROBLOX scripts if I can reuse that reference.
    Pretty much metal would be coded as:
    ifistouching(PT_SPRK>PT_METL) function:passparticle>PT_METL/PT_PSCN/(ect.)
    Which would basically mean something like "If spark touches metal, then pass the spark on to the next particle of metal or an other conductor. That make sense? Not the real code but something like that.
  • Cr15py
    17th Oct 2010 Member 0 Permalink
    Neospector
    I noticed that when I typed... I was sure someone would notice. And the istouching function would only need the name of the element the current element will react to.
  • roguegeneral--
    17th Oct 2010 Member 0 Permalink
    could we make a larger server to sustain this coding?
  • Neospector
    17th Oct 2010 Member 0 Permalink
    cr15py
    So just ifistouching(PT_SPRK) function:passparticle>PT_METL/(ect.)?
  • jakester12345
    17th Oct 2010 Member 0 Permalink
    i think it would be a great idea but then you would still have noobs saying that it doesn't work lol. ACME and i were thinking the same thing a few weeks back but i knda forgot about it cause we weren't sure how to implement it :/. it sounds like a cool idea.
    pros - easier to add elements and other parts to the program.
  • MiXih
    17th Oct 2010 Member 0 Permalink
    cr15py
    We must have a string with code, and some function will be reading code and when code is well, function execute this code. With this we can debug code and show errors before executing code.

    Your idea is impossible, because impossible is real-time compilling and changing code in EXE.
  • jakester12345
    17th Oct 2010 Member 0 Permalink
    but it wouldn't be compiling it would just be reading it from a file?
  • MiXih
    17th Oct 2010 Member 0 Permalink
    jakester12345
    Its impossible too, program cant make code which is uncompiled, program can read code and execute it, like my idea but without string.
  • jakester12345
    17th Oct 2010 Member 0 Permalink
    okay but............ if you could somehow do it, it would be cool lol
Locked by jacob1: necro