Code:
Problem description: So am making a timing system for my world simulator game i want to add a aging system i want after a year for all the mobs age go +1 how do i do that
BTW: i haven't coded for a while
1
2
In response to Dr.Penguin
|
|
++ is the increment operator. It's equivalent to x + 1 (though it has some side effects, depending on how you use it.)
mob/verb/test() |
In response to Dr.Penguin
|
|
You need to learn the basic's before you even post an issue.
http://www.byond.com/docs/ref/index.html http://www.byond.com/docs/guide/ Honestly you are wasting your time if you don't learn the language. |
In response to Dr.Penguin
|
|
What do you mean "identify M as everyone"?
|
In response to Dr.Penguin
|
|
You seem to be a code taker. But I'm nice so..
mob/var Also to identify all the player in the world you use: for(var/mob/M in world) |
In response to Dark-DVF
|
|
Dark-DVF wrote:
You seem to be a code taker. But I'm nice so.. > mob/var am working with a world proc |
In response to LordAndrew
|
|
LordAndrew wrote:
What do you mean "identify M as everyone"? like you know M as mob i want something like M as world M.Age += 1 and it will add it to everyone |
In response to Dr.Penguin
|
|
You'd want to use a loop in order to change variables for everyone. Check into the for construct in the reference.
|
In response to Dark-DVF
|
|
Please don't do that again! :)
He needs to learn, he has been on BYOND for over a year now he needs to learn the language instead of begging. |
In response to A.T.H.K
|
|
A.T.H.K wrote:
Please don't do that again! :) Can you tell me when was the last time i posted a developer help |
In response to Dr.Penguin
|
|
Close! You need to tell M what type it needs to be. In this case, you'd want to tell it that M needs to be a mob.
|
In response to Dr.Penguin
|
|
That has nothing to do with it, if you actually learnt the language (do I have to keep repeating myself?) you shouldn't just forget it all within the 3 - 4 months you have not been active.
So again, if you learn it properly like everyone else does the time you weren't active on the forums or BYOND would mean you may have to learn some new features added, which in that time span we didn't really have any. |
i haven't been in byond for a couple of months and why would i
remember a language when i have had alot of things to do |
1
2
Developer help is also exactly just that, try giving us some example code instead of just asking for it.
You've done this in the past many times no one will help you unless you try first.