Mystic Software Forums

Miscellaneous => Archives => Archive => Topic started by: Anonymous on October 02, 2003, 02:22:19 PM

Title: (no subject)
Post by: Anonymous on October 02, 2003, 02:22:19 PM
I can't, for the life of me, figure out how to take only one item that the player has. I use the #TakeItem command but it takes all of the items. Can any one help me?
Title: (no subject)
Post by: Mark of the Dragon on October 02, 2003, 07:29:03 PM
Try this:
Code: [Select]
#ItemCount(itemhere$,var!)
#var!=var!-1
#TakeItem(itemhere$)
#For(x!=1,x!+1,x!=var!) *I don't know if I got this code right...*
{
#GiveItem(itemhere$)
}


Like I said, I probably screwed up somewhere. Too tired to look at the command reference right now...
Title: (no subject)
Post by: Cuzit on October 03, 2003, 10:07:29 PM
You know, I never thought of that.