I haven't tried this yet, but just a quick question if anyone knows the answer.
I've set up a system were there are 4 types of potions, all with separate counters to keep track of amounts. I've been trying to figure out a way to use one item to increase the max counter size for all 4 of them.
I'm not sure how to go about this since I don't script often enough to "get good" which means every time I go back to my project, I have to do a little bit of reorienting and relearning. I imagine the functions "Max" and "Max Increment" are used somehow.
Sorry for being such a noob/pain, but am I anywhere close?
Code:const int CR_POTA = 9; const int CR_POTB = 10; const int CR_POTC = 11; const int CR_POTD = 12; item script counterpickup { void run(int countermax, int pustring) { Game->Max[CR_POTA] == countermax; Game->Counter[CR_POTA] == countermax; Game->Max[CR_POTB] == countermax; Game->Counter[CR_POTB] == countermax; Game->Max[CR_POTC] == countermax; Game->Counter[CR_POTC] == countermax; Game->Max[CR_POTD] == countermax; Game->Counter[CR_POTD] == countermax; Screen->Message(pustring); } }