Jump to content
  • 0

Adding a limit


ToiletMaster

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

Hi there guys,

 

currently i'd like to ask how to place a limit on a quest if it reaches 3 and above?

 

Lets say i have 20 quest available.

 

If they take up 3 quest and above it'll state that you cant take anymore quest.

 

Is it possible?

 

so far this is what i've got so far. After putting the setquest

 

would be like


 

.@quest$ + 1

 

and then start off with

 

if (.@quest$ >= 3) {
mes "you cant take anymore quest";
close;
}
Edited by ToiletMaster
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

For all quest initialized add

set Quest_finish, Quest_finish + 1;

 

and

if( Quest_finish > 3 ) {
	mes "you can't take another quest";
	close;
}

when the quest is finished

set Quest_finish, Quest_finish - 1;

Edited by Capuche
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

make a loop for running checkquest on quest list.

 

or maybe record a variable to count how many quest you took.

Edited by goddameit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

make a loop for running checkquest on quest list.

 

or maybe record a variable to count how many quest you took.

hmmm, but you're talking about if set example hunting == 2 right?

 

but i'm talking about i have 20 quest available and they can take at max 3 only. or am i understanding it wrongly lol.

 

please feel free to correct me

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

For each quest finished

set Quest_finish, Quest_finish + 1;

 

if( Quest_finish > 3 ) {
	mes "you can't take another quest";
	close;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

Thanks capuche!

 

Sorry but i did not mention the additional details in my mind (was a bit sleepy >_>) 

 

i actually wanted to mean that he can only take 3 quest at the same time but once they're done then they can repeat that quest back.

 

errr.... how do i put this lol..

 

imagine i have 20 quest

 

A B C D E F G ( all the way to 20 quest)

 

Then he can take only A B C  or mix around as long as it's 3. 

 

But let's say he's done with A then he can choose to either take A again or choose the other quests that he did not take as long as it doesn't exceed 3. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

Yes! this was what i'm looking for! Thanks again capuche! I was wondering how do i add the code lol

 

(i actually added brackets ._. that's why it din't work lol. but i get it now hahaha now xD)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Well it won't work with simple quest where the player can initialize the quest again and again, I forgot this possibility

 

but I answered your request, so it's okay :rolleyes: (lol)

Edited by Capuche
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

Well it won't work with simple quest where the player can initialize the quest again and again, I forgot this possibility

 

but I answered your request, so it's okay :rolleyes: (lol)

sorry but i din't get this part lol,

 

do you mind explaining it? xD

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

Guest
Answer this question...

×   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.

×
×
  • Create New...