Wow , I thought I would never need helop but I do . I have asked a few teachers at my school and my frineds but we can't figure it out i wont reveal what gam i am making but I can say it can't be uploaded here until they increse the server side uploading limit
but here is the problem: I have 2 lists
LIST: 1
1
2
3
4
5
6
LIST: 2
1
2
3
4
5
6
I want the script to deleat what ever is in list 2 from list one I knwo it might not make sense but please help I will let you have sneak peaks
Offline
Could you specify with more detail what your problem is?
Offline
list 2's items in list 1 will delete the items in list 1:
when I receive [list-stuff] set [i] to (0) repeat(length of [list1 v]) change [i] by (1) set [j] to (0) repeat(length of [list2 v]) change [j] by (1) if<(item (j) of [list2]) = (item (i) of [list1])> delete (i) of [list1] end end endThat should do it. Tell me if it doesn't work.
Last edited by MoreGamesNow (2012-03-08 22:35:40)
Offline
^Thanks but that would require WAY too many varible.. My proble is like a deck of cards
I want it once you have drawn the cards from the deck i want them to be dealted from the deck
The 2 lists are DECK and HAND Thanks I cant explain any more than that if still i will upload the script in its own game
Offline
Just replaced "list1" with "DECk" and "list2" with HAND". I don't understand how 2 variables is too much.
Why don't you delete cards from the deck as they are dealt?
When I Receive [Deal] repeat (size_of_hand) set [i] to (pick random (1) to (length of [DECK v])) add (item (i) of [DECK v]) to [HAND v] delete (i) of [DECK v] end
Last edited by MoreGamesNow (2012-03-09 09:37:00)
Offline