Page 2 of 2

Re: Get Escape Coins

Posted: 26 Sep 2020, 16:59
by czirimbolo
Can you also add negative values (below 0)? I mean for example:
MIN -1000
MAX 15000

Re: Get Escape Coins

Posted: 26 Sep 2020, 21:50
by Raheem
There is a problem in posting codes since we transferred from old HOST, I can't post code so I attach the .sma.
I did it, try:
czirimbolo wrote: 3 years ago Can you also add negative values (below 0)? I mean for example:
MIN -1000
MAX 15000
From: #define MIN_RANDOM 0 and #define MAX_RANDOM 300 modify it to be from anything to anything. As you need and then recompile it.

NOTE: Change random(0, 1) to random_num(0, 1) and then compile.

Re: Get Escape Coins

Posted: 27 Sep 2020, 09:17
by czirimbolo
Raheem wrote: 3 years ago There is a problem in posting codes since we transferred from old HOST, I can't post code so I attach the .sma.
I did it, try:
  • rewards.sma
czirimbolo wrote: 3 years ago Can you also add negative values (below 0)? I mean for example:
MIN -1000
MAX 15000
From: #define MIN_RANDOM 0 and #define MAX_RANDOM 300 modify it to be from anything to anything. As you need and then recompile it.
Can you make seperate values for coins and exp? I mean

MIN EXP -1000
MAX EXP 50000

MIN COINS 0
MAX COINS 500

Because max values are too low for EXP and when you make it higher, it can be too much for coins

Re: Get Escape Coins

Posted: 27 Sep 2020, 11:16
by Raheem
rewards.sma
(2.72 KiB) Downloaded 342 times
rewards.sma
(2.72 KiB) Downloaded 342 times

Re: Get Escape Coins

Posted: 27 Sep 2020, 12:06
by BandiT
thanks a lot bro. it-s working, you are the best