Jump to content
  • 0

Make this script have more winners before closing.


Noire

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

Can you help me make this script have 1 to 10 winners then the NPC will be disabled after that.

 

Edited by Noire
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   8
  • Joined:  05/12/20
  • Last Seen:  

sorry, there is no need for "set", use:
 

.5times++;
if (.5times >=5)
	disablenpc();


and line 144, not 143. After "set winRPS" xD

Edited by buraquera
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   8
  • Joined:  05/12/20
  • Last Seen:  

add this to line 143


set .5times++; if (.5times >=5) disablenpc();

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

11 hours ago, buraquera said:

add this to line 143


set .5times++; if (.5times >=5) disablenpc();

having an error ! ?

32423423423.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

14 hours ago, buraquera said:

sorry, there is no need for "set", use:
 

.5times++;
if (.5times >=5)
	disablenpc();


and line 144, not 143. After "set winRPS" xD

it works, but can i ask for somethig else? there is a bug when Player : A just stay on dialogue box , and Player B wins the last slot player A still can able to access the npc even is was already disabled how can i prevent this?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   8
  • Joined:  05/12/20
  • Last Seen:  

add something like this after the last dialog
 

if (.5times >=5){
	clear;
	mes "Sorry someone already has won";
	close;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

On 7/10/2022 at 11:55 PM, buraquera said:

add something like this after the last dialog
 

if (.5times >=5){
	clear;
	mes "Sorry someone already has won";
	close;
}

 

all done now thank u!

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