The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compare random values
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #17
RE: How to compare random values
Code:
REF1=<char1>
REF2=<char2>
REF3=<char3>
REF4=<char4>
REF5=<char5>
FOR 20
  LOCAL.Gold<R1,5> ++
  //If this line doesn't work, try using this workaround:
  //LOCAL.N=<R1,5>
  //LOCAL.Gold<dLOCAL.N> = <eval <LOCAL.Gold<dLOCAL.N>>+1>
ENDFOR
FOR 1 5
  REF<LOCAL._FOR>.NEWGOLD <LOCAL.Gold<dLOCAL._FOR>>
ENDFOR
just set all chars that will receive the gold on REF[x] and then start giving 1gp to random chars until it reach 20gp
(This post was last modified: 06-19-2014 12:50 AM by Coruja.)
06-19-2014 12:49 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Post Reply 


Messages In This Thread
How to compare random values - kn4tseb - 06-17-2014, 01:28 PM
RE: How to compare random values - XuN - 06-17-2014, 05:58 PM
RE: How to compare random values - kn4tseb - 06-18-2014, 12:05 AM
RE: How to compare random values - Seron - 06-18-2014, 12:50 AM
Re: How to compare random values - Extreme - 06-18-2014, 02:14 AM
RE: How to compare random values - Coruja - 06-18-2014, 02:21 AM
RE: How to compare random values - kn4tseb - 06-18-2014, 02:42 AM
RE: How to compare random values - kn4tseb - 06-18-2014, 07:22 AM
RE: How to compare random values - Extreme - 06-18-2014, 07:45 AM
RE: How to compare random values - Skul - 06-18-2014, 07:31 AM
RE: How to compare random values - kn4tseb - 06-18-2014, 07:51 AM
RE: How to compare random values - Extreme - 06-18-2014, 07:59 AM
RE: How to compare random values - Skul - 06-18-2014, 08:00 AM
RE: How to compare random values - kn4tseb - 06-18-2014, 08:08 AM
RE: How to compare random values - kn4tseb - 06-18-2014, 09:12 AM
RE: How to compare random values - XuN - 06-18-2014, 07:19 PM
RE: How to compare random values - Coruja - 06-19-2014 12:49 AM
RE: How to compare random values - kn4tseb - 06-19-2014, 01:33 PM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)