Jump to content
  • 0

NPC randomize A-Z letters for maximum of 30 letters?


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Will it be possible for an NPC to randomize A-Z letters in maximum amount of 30 letters?

Then, the player will hunt have to type that random letters?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


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

setarray .@ww$,"A","B","C", ... , "Z";

loop <-- make it do 30 times
{
set .@www$,.@www$+.@ww$[rand(26)];
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

by "loop" do you mean i copy-paste this part "setarray .@ww$,"A","B","C", ... , "Z";" 30 times?

setarray .@ww$,"A","B","C", ... , "Z";

setarray .@ww$,"A","B","C", ... , "Z";

setarray .@ww$,"A","B","C", ... , "Z";

all the way down to 30? sorry kinda confuse. or am i suppose to just copy paste your script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Quite not sure which specific loop :(

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

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