Ok you are all probably going to go, "HAHA that soo easy" -_- after I tell you what I would like
I would like a script that when called on it will do the following,
It will check ALL THE INVENTORY of what the hero has, Put the amount into their own verible. for example potions = @potions (I think thats how it works anyway) and after thats done they have to pay a level to get it all back, don't ask me questions and I'll tell you no lies but here is how I it would work in a non script logic way.
1. it checks all the times and put their quality in a varible.
2. it removes all the items from the heros inventory
3. it will see all the weapons and armor in the hero's inventory and set it to their own indivial varible
4. remove all the weapons and armor.
5. Ask if the hero is willing to pay a level to get all their stuff back.
6. Hero says yes, level goes down 1, and all the varibles are checked accordingly and put the SAME amount of items back into the hero's possition.
7. Hero says no all the veribles are cleared.
8. end of script.
soooo alll I really need you to do is tell me what I need in what order I can understand the following. each if player has 6 potions and potion is in the first slot, it will look like this for adding 0,1,6 (knows this from looking at other scripts.) if you can help me get to the point were all I have to do is copy one to remove the items and name the verible its placed. vis versa I will be happy. I do not want a WHOLE script just for my game but more of a universal setting so if I add items I can edit the script myself accordingly I thank you all very much.
*edited into*
I don't want to use an event to do this for it would lag the hell out of it, and since the game I am making will have a lot of stuff that can go into the inventory I don't want to use over 100 varibles just for this that can be used for events. if I use strings varibles in scripts it will cleared far quicker and I won't have to worry about using them.ps, defult gives you near 80 stuff to put in your inventory. with the scripts I have and what I plan on doing I will have about 200 give or take. thats why I want this in script format.