ID:144878
 
Code:
mob
player
var
greenmana = 0

obj
card
proc
usrTap()
land
forest
name = "Forest"
usrTap(M as mob)
M.greenmana += 1


Problem description:
can't get it to recognize M.greenmana. I tried to make it create M.greenmana, but it didn't work.

You want

obj
card
proc
usrTap()
land
forest
name = "Forest"
usrTap(mob/player/M) //mob/player/M instead of M as mob, as is pointless in procs.
M.greenmana += 1
Are you making a Magic game and if you are make sure you note in your credits somewhere that all the ideas pertaining to Magic:the gathering belong to wizards of the coast.
mob
player
var
life
redmana
bluemana
greenmana = 0
blackmana
whitemana
library[0]
hand[0]
graveyard[0]
ob[0]
playarea[0]
lands[0]
proc
deckShuffle()
var/i
for(i=1,i<=100,i++)
library.Swap(rand(1,library.len),rand(1,library.len))
draw()
hand.Add(library[1])
library.Remove(library[1])
gameStart()
deckShuffle()
var/i
for(i=0,i<=7,i++)
draw()
src.life=20
Stat()
statpanel("Hand",src.hand)
statpanel("Players",players)
New()
players.Add(src)
src.gameStart()

I get bunches of errors whenever I run this, yet it compiles fine. Can anyone help with this?
In response to Goldenferret
nevermind, got it
one more thing: how do you remove the nth item in a list?
In response to Goldenferret
...apparently you never heard of double...make that quadruple posting... and the edit button.......

now, because of all those posts, which one do you mean for nvm?

- GhostAnime
In response to Goldenferret
list -= list[n]
In response to DeathAwaitsU
Are you making a MTG game? Awesome! =)