| 05-23-2006, 04:09 PM | #1 |
Hey guys, I was hoping someone could help me here. Vex told me that adding leaderboard kills and upgrades (weapon and armor like from blacksmith on players Hero) could be saved. Heres what he said : the codemaker takes an input array and converts it into code. If you just place the kills data and the upgrades to the input array you will be able to generate and load a code that stores them I'm looking for a bit of help on how to do this, and if possible, add it to the default code for loading heroes. Thanks in advance. ![]() |
| 05-25-2006, 12:39 PM | #2 |
Making the codemaker engine save them is easy. But making the hero save example also load them is quite harder. But how would that work? should a hero's code store the kills of everybody else or just his kills? |
| 05-26-2006, 03:30 AM | #3 |
Just his. the upgrade thingy isnt that big of a deal. the leaderboard is more of a Player A has x kills, he gets a cookie kind of thing. what other people have isnt important to know. So if its a pain to include it with the hero save itself, using a seperate code for leaderboard wouldnt be bad, and the code doesnt need to save other peoples scores either. |
| 05-26-2006, 01:38 PM | #4 |
Oh right it is easy to have a separate code for the leader board and upgrades. I recommend you to take a look to the random integer code example in the codemaker map. It is kind of mostly in GUI and if you use the upgrades and kills as data instead of random numbers you have your work done, you'd just have to make triggers that load/save that code . The save one should update upgrades and kills. Notice that upgrades can't be reversed |
