Well now that images are added lets take a look at running the room job events and the way they work. If you want to know details on how each event works and its syntax there are other guides for this. This is a practical example.
As mentioned many times first events go in a fall down method. So which ever event first meets the conditions is the one that fires and all other are ignored.
Lets go look at our bath attendant job from the previous guides. First off make the xml file, i recommend copying and pasting one of the existing ones to save time but it's up to you on this one.
As a standard please add the xml file to
libs/otherlib/xml/event/roomjobs
and don't forget to update
libs/otherlib/xml/event/events.xml
with the file name of the new job.
Paper work done lets go start making events. First off what if the girl is sick, this may seem weird but we need to stop anything else from happening if the girl is sick. Of course we really don't want to do much here better to just add a post event that is a standard for girl sick. Please, please, please you hold to this standard or sick girls will work themselves to death. Think of the slaves.
This really isn't a complicated system for selecting jobs were just doing a random 1 - 3. Which everyone is pulled we point out the girl and give her text. Because this isn't really a class specific job and more of a fun one no one should really care. So that is why the only real check we are doing is
evecheck label = "#rand3" check = "eq" vvar = "2"
So it chooses one and now we make some changes. The most common change is to drop the girls health... fatiguework = -33 but who knows its a variable so we can mod it if the player ever gets an item or effect with bonuses.
evechange label = "#health" check = "sub" vvar = "fatiguework"
After the default health change it's really up to the player what you want to modify plenty of examples and there is a long list of variables in
libs/otherlib/xml/textstories/variablereplace.xml
to choose from. You can assign points to classes the girl doesn't have and they will just be ignored.
Now comes the fun part post events. Most of these I have already built for you and are very generic. Does the girl get sick? Did she learn a class? Did she lose her virginity? So much fun. The only one I really want to see is sick after that it depends as you can see in our example she has the option of learning different classes based on the job performed. That's it for standard events.
Now fire the text! And that would be another tutorial all together just wanted to point out that based on which event fired we're firing a different text (bathattendantjobservice, bathattendantjoboral, bathattendantjobcleaning).
And we just wrote an entire job events. If you have any questions leave a comment I will do my best to answer.
Daisy


