Aller au contenu

Photo

checking the ammount of "jobs"you got?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Who said that I

Who said that I
  • Members
  • 492 messages

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?



#2
Fester Pot

Fester Pot
  • Members
  • 1 394 messages

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!


  • Zwerkules aime ceci

#3
Who said that I

Who said that I
  • Members
  • 492 messages

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.



#4
Who said that I

Who said that I
  • Members
  • 492 messages

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! :D