Author Topic: checking the ammount of "jobs"you got?  (Read 433 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
checking the ammount of "jobs"you got?
« on: September 01, 2015, 10:18:05 am »


               

Hi there!


 


As I am building my module and implemented the crafting system (CNR) I wondered if it was possible to limit the ammount of jobs being able to be taken by a character, like one can only maximize like 2 jobs (example: Tailoring and mining) while not getting any further with other jobs? (able to craft at basic level but not getting any XP from it anymore)


 


is this possible with CNR?



               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
checking the ammount of "jobs"you got?
« Reply #1 on: September 01, 2015, 02:36:27 pm »


               

Yup.


You'll need to make modifications to whatever scripts are called to assign jobs/tasks to a player, and use a variable to store a variable.


This variable would be + or - depending on if the job/task is given or completed.


Then, if it is done via conversation, a new node in the conversation would be created, to check to see if the variable value is equal to 2, then that node in the conversation would fire. "Sorry, word on the street is you already have two jobs on the run. I can't afford giving you another until I know you've completed work for your other employer." or something along those lines.


When a job/task is complete, you update the variable count and minus its value by 1.


It's just that easy!


FP!



               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
checking the ammount of "jobs"you got?
« Reply #2 on: September 01, 2015, 05:25:52 pm »


               

currently I have it open, they can buy the items in the appropriate stores and just do their thing but kinda wanna put a lit on it so you can only do a few in total per character.



               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
checking the ammount of "jobs"you got?
« Reply #3 on: September 11, 2015, 12:50:28 am »


               

personally not entirely sure how to go about it...


 


was thinking along the lines of making the items undropable and being able to be purchased from the appropriate stores via dialogue.


 


although I do not know how to craft a script that could count the amount of CNR craftable items you got (example sewing kit, carpenter's toolkit, etc, all the other things (like woodcutter's axe, pick axe, shovel, materials to gather raw crafting materials) I would like to keep available for purchase)


 


would like to keep the max to 3 and if anyone can help me in detail on how to achieve this then that would be grant! '<img'>