Jump to content

TheOfficialStinger

Member
  • Posts

    9
  • Joined

  • Last visited

About TheOfficialStinger

  • Birthday 07/16/1990

Profile Information

  • Gender
    Man
  • Interests
    Programming

TheOfficialStinger's Achievements

  1. I believe the difference is that you're setting the member value ontick to a function rather than making a new function called ontick. It's more like C structs that can contain an infinite number of any type <3 <3 For example: a = {}a.a = function()print("a.a was called!");endfunction a.b()print("a.b was called!");endThis creates a "class" called "a" "a.a" is a function that prints "a.a was called!" to stdout. "a.b" is a function that prints "a.b was called!" to stdout. The difference is, "a.a" is actually PART OF "a". It's included in the "class" itself, while "a.b" is just a function that starts with "a." Functionally, you'll almost never notice a difference, but it can cause some horrible errors later if something goes wrong. Plus it's just better code style, as well as future proof. You may ask why this applies to a script outside of a group, once again the answer is that it's better code style. If you do that with ALL functions, it's more human readable and makes it carry over smoothly into member functions.
  2. Thank you all very much! Well, i've even got it mostly working! Just some stuff that needs testing before i release it to the public, and ZomPy will be working
  3. If i were to make a "core" mod for Project Zomboid ( core meaning written in java and overriding some of their code ) that added Jython scripting WITHOUT decompilation of any of their classes, Would that be considered legal? And if it were, would i receive flame or congratulations for making such an attempt? Thanks in advance! - Overkill
  4. Thank you all very much! Here are your clydes: If i could trouble your great minds once more... Now that i have my example panel, how do i go about adding, manipulating, and getting data from a text box when the player presses a button? More important than that, how do i tell them what happened when they sent the text?
  5. Hello, all! I'm just wondering how i would go about creating a simple GUI box in-game that has a text box and a button on it when a player presses a key? There's some Clydes in it for you if you help! ;D
×
×
  • Create New...