Bots and Simulations > DNA - General
A question
(1/1)
Peksa:
What happens if you try to store a value in location above 1000? Is the location modded (12345 1000 mod)?
EDIT:
Can you store memory location into a memory location?
Eg.
--- Code: ---start
blah blab >
400 *971 store
--- End code ---
Numsgil:
Memory locations are just numbers, so you can store the numbers in a memory location no problem. Then you can dereference them with the * operator, like in your example. So yeah, things like pointers are quite possible.
I believe Eric has implemented modding for values > 1000 and values < 0, but I'm not 100% sure on that, so you'll need to double check.
Peksa:
So even 98 **.eye5 store would be possible?
Numsgil:
You would have to do
98 *.eye5 * store
but yeah, that would work. Not sure what it would do though
EricL:
The memory locaiton arguement for stores, incs and decs is indeed MODed for both postive and negative values with the exception that multiples of 1000 store to location 1000.
The only exception is a store to location 0, which by design, does nothing.
Navigation
[0] Message Index
Go to full version