Jump to content
Sign in to follow this  

List of Moodle Parameters for Items Scripting

Recommended Posts

I've been trying to find a list of moodle names for items but haven't found one so far. These are the ones I know of:

  • HungerChange
  • BoredomChange
  • UnhappyChange
  • StressChange
  • ThirstChange


Are there any more? Is it possible to modify endurance?


EDIT: I just realized that I can get these parameters by looking at the Javadoc reference for the Item class. So to answer my own question, here are a few more:


  • FatigueChange
  • EnduranceChange

I wonder how the mapping works though, because if it's being done through Java's reflection mechanism, then we should be using "ThistChange" instead of "ThirstChange" due to how the method is spelled.

Share this post

Link to post
Share on other sites

I was interested in the moodle "Sickness".  Didn't see a suitable method in the item class for it, I shall continue my trawling and report back here!

Share this post

Link to post
Share on other sites

Found two methods, "Moodle" and "Moodles", and even more confusing was there is two effects for sickness, "Sick" and "Sickness".


Sickness is the level of Sickness numerically(Int) and "Sick" relates to the moodle state itself (The moodle "Level" such As "Light Moodle" "Average Moodle" or "Heavy Moodle").


Ultimately, The java you listed is the way to go, but only relates to items, I don't see "BoredomChange, SicknessChange, PanicChange etc etc" as inherited methods in the player class, the way I modified was from a custom trait- Here is an example of what I did:


Altering the Moodle level, is not supported yet, (Build 23 at time of writing) Check out this thread if anyone ended up here looking for a way to alter Moodle states from the player class, not items:




The basic jist of it, is MoodleFactory hasn't been implemented (Yet!).

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...