obj
Cards
Monster
Test
typePath=/obj/Cards/Monster/Test
name="Earth Monster"
icon_state="test"
Click(src)
if(usr.canPlay)
if(usr.spot1==0)
new typePath(usr.loc)
usr.spot1=1
return
if(usr.spot2==0)
new typePath(usr.x-1,usr.y+1,usr.z)
usr.spot2=1
return
if(usr.spot3==0)
new typePath(usr.x,usr.y+1,usr.z)
usr.spot3=1
return
if(usr.spot4==0)
new typePath(usr.x+1,usr.y+1,usr.z)
usr.spot4=1
return
if(usr.spot5==0)
new typePath(usr.x+2,usr.y+1,usr.z)
usr.spot5=1
return
if(usr.spot1==1&&usr.spot2==1&&usr.spot3==1&&usr.spot4==1&&usr.spot5==1)
usr<<"You cannot play anymore cards."
owner=usr
else
world<<"Moo"
Problem description:
The card will appear over the player since spot1=0, but it won't appear in any other locations, even though they are equal to zero.
Remember to read the comments carefully:
Read carefully, learn how, ask questions.
- GhostAnime