Being that we dont know that all weapons should change the class we cannot assume that the index will match the order in which you enter the 'weapons'. Allowing you the ability to have a 'key' to the results is a much more clean method for reading the code, but it is less efficient when compared to normal array. Management wise, it is better to follow as I did, but if you can do it otherwise, then great. Saving a milisecond is not a huge concern to me.
You would have had to fill the index on creation or something to ensure that every weapon had a place holder and that the index associated could relate back via ID.
Not sure if I'm posting on the right tutorial, but is there anyway to edit the Super Guard ability through a script event in-game?
BIOHAZARDDEATH 2 days ago
@BIOHAZARDDEATH You can yes. However, you will need to be a bit more specific about what it is you are asking.
Technically you could write your script, then put it in quote tags, then run an eval command to import it when your ready to have it applied.
gubid 5 hours ago
PLEASE PLEASE PLEASE make a side battle system (basic if possible) with changes to the hp bars and ext. would make me a happy pappy
Hi5er9 6 months ago
Just a bit curious, if you plan on using numbers as the key, why not just use an Array?
No offense, just seeing if there is a specific reason or a speed difference or whatnot.
GameGuysProjects 10 months ago
@GameGuysProjects
Being that we dont know that all weapons should change the class we cannot assume that the index will match the order in which you enter the 'weapons'. Allowing you the ability to have a 'key' to the results is a much more clean method for reading the code, but it is less efficient when compared to normal array. Management wise, it is better to follow as I did, but if you can do it otherwise, then great. Saving a milisecond is not a huge concern to me.
gubid 10 months ago
@gubid Ah yes thank you. I would've simply checked to see if the index existed or not and went from there. Thanks for the reply.
GameGuysProjects 10 months ago
@GameGuysProjects
You would have had to fill the index on creation or something to ensure that every weapon had a place holder and that the index associated could relate back via ID.
Thanks for commenting!
gubid 10 months ago