#10% extra cash for event

1 messages · Page 1 of 1 (latest)

wind escarp
#

basic idea is I have an event that goes on for 10 minutes every 50 minutes (1hr complete loop), and everything but the extra income is set up. Ive been resorting to lazy scripting (also because I dont know much) so ive been wondering if I should just script a wait function to the ways to make money (at the moment I have 7 ways to make money) or find out how to script an extra 10% income event-thing. lmk!

mellow fulcrum
#

just

#

divide by 10

#

and increase all amounts gained

#

by taht division

#

most of lua is math

daring dew
daring dew
#

Anyway Good night too tired to continue

wind escarp
mellow fulcrum
kind rock
#

i think the problem is how are you going to make it happen every 60 mins

#

to apply a boost that lasts 10 mins

#

to each plr.

#

and i heavely doubt a simple ass while loop would do the job

#

because it also needs to apply to the server specifically

#

so that the timer doesn't reset everytime a plr joins

#

its pretty hard

#

really

#

you definirely need to ask a grade 2 scripter in this server

#

(red colored nametags)

pliant charm
pliant charm
#

but tbh, even that is easy. its only hard if you want to do arbitrary time

#

like random interval

kind rock
#

wouldn't it be better to make it based on server lifetime?

pliant charm
pliant charm
kind rock
#

oh so it'd just be rng

pliant charm
pliant charm
#

easy to do random interval with communication, without comms is an interesting problem

#

depends on the thing you're trying to sync

#

can probably get away with the clock trick for rng seed if you do it right

kind rock
#

one question

#

what does that line do exactly?

pliant charm
#

same thing can be used for like day/night cycle, so if its night on one server, it's night on all servers at the same time guaranteed

pliant charm
kind rock
#

os.time()

#

that line from earlier

mellow fulcrum
#

most of the "scripter" roles i see dont really know too much and try to overcomplicate simple solutions

pliant charm