ID:173865
 
In my game there are seasons. How do I make the turfs change for each season? I have I tried many things and some problems always comes up.
I'm still looking for some help on this question and I have another question which is very newbish. How do I make it so when you attack it only attacks what's directly infront of you and not what's in (mob/M as mob in oview(1). Any well would be nice Thanks in Advance.
In response to Codesterz
Codesterz wrote:
I'm still looking for some help on this question and I have another question which is very newbish. How do I make it so when you attack it only attacks what's directly infront of you and not what's in (mob/M as mob in oview(1). Any well would be nice Thanks in Advance.

I am not too sure on the season thing... but as for the attack llok up the get_step() proc in Dream Maker.
In response to Codesterz
For the seasons, one thing you can do is have every turf in the game have four icon_states (one for each season) and do something along the lines of this.
var/season=1  //1=spring, 2=summer, 3=fall, 4=winter
proc/seasonchange()

beginning

sleep(500000) //a long season
if(season>=4) season=1
for(var/turf/T in world) T.icon_state=season
goto beginning
world/New()
..()
seasonchange()


For the attack thing you do something like this.
mob/verb/attack()
var/mob/M
for(M in get_step(src,src.dir)) break
if(M)
//What you want it to do if they are there.

Hope this helps

~Neo~