Jump to content

List of Moodle Parameters for Items Scripting


Niaw

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.

Link to comment
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:

player:Stats:setBoredom(50);

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:

 

http://theindiestone.com/forums/index.php/topic/7855-moodlefactory-adding-moodles-not-supported-yet-april-20th/

 

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...