Jump to content
  • 0
Sign in to follow this  
simplynice

Do While for item

Question

So my script is just like this..

 

 

//this is the item choicessetarray .beadID[1],4739,4709,4749,4729,4759,4719,4790,4794,4763,4799,4802,4825,4831,4841,4844,4849,4848,4852,4868;set .@BeadMenu$,"";//loop for menufor( set .@i,1; .@i < getarraysize( .beadID ); set .@i,.@i + 1 ){set .@BeadMenu$,.@BeadMenu$ + getitemname( .beadID[.@i] )+":";}//makes a selection of what item you wantset .@Bead,select( .@BeadMenu$ ); 

 

 

I want the player to choose three kinds of bead or loop it 3 times and save it into an array.

 

set .beadChoices[1],.beadID[.@Bead]1,.beadID[.@Bead]2,.beadID[.@Bead]3;

 

How can i achieve this?

Edited by simplynice

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
//this is the item choicessetarray .@beadID[1],4739,4709,4749,4729,4759,4719,4790,4794,4763,4799,4802,4825,4831,4841,4844,4849,4848,4852,4868;for( set .@n,1; .@n <= 3; set .@n, .@n+1 ) {set .@BeadMenu$,"";//loop for menufor( set .@i,1; .@i < getarraysize( .@beadID ); set .@i,.@i + 1 ){   if ( .@beadID[.@i] != 0 ) {       set .@BeadMenu$,.@BeadMenu$ + getitemname( .@beadID[.@i] )+":";   } else {       set .@BeadMenu$,.@BeadMenu$ + ":";   }}//makes a selection of what item you wantset .@s, select( .@BeadMenu$ );set .@BeadChoices[.@n], .@beadID[.@s];set .@beadID[.@s], 0;}

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.