How to get decimal wait values?
danielsrichai
20 Jan 2021, 01:03I seem to can only get integer wait values, so how may i get decimal wait values with the function?
jmnevil54
20 Jan 2021, 02:49We really need to do something about the spam here.
You need a remainder sign. The %
sign is the code and give the remainder sign that Quest has.
This is the closest we have to a tutorial at the moment.
https://docs.textadventures.co.uk/quest/patrolling_npcs.html
Quest does not divide with decimals.
mrangel
20 Jan 2021, 09:11You can't. Timers are only accurate to within 1 second; and the lag between the Quest backend and frontend can be nearly a second in any case.
If you want something to be accurate within a secon, you'll need to use javascript. If you can give a better example of what you're trying to do, I might be able to suggest how to go about it.