- Joined
- Mar 26, 2017
- Messages
- 376
I would like to save the amount of games and wins for players in my map. Something real simple.
Since I'm not a huge fan of making the players type I would like to make use of the PreloadGen function.
I would like to put a script into a file, that is able to be read at game start.
I am currently stuck on getting the syntax right to put the correct script in a file so that something like a small string is loaded for a user.
Can someone help me here and point out where I made a mistake in the second line?
And if someone is aware, is it also possible to be able to import a string from file by entering it into a variable, instead of having to use BlzSetAbilityTooltip to import a string?
Since I'm not a huge fan of making the players type I would like to make use of the PreloadGen function.
I would like to put a script into a file, that is able to be read at game start.
I am currently stuck on getting the syntax right to put the correct script in a file so that something like a small string is loaded for a user.
Code:
PreloadGenStart()
Preload("\" )\nBlzSetAbilityTooltip("1097690227", \""..XXX.."\", "1")\n//")
PreloadGenEnd("filename.pld")
Can someone help me here and point out where I made a mistake in the second line?
And if someone is aware, is it also possible to be able to import a string from file by entering it into a variable, instead of having to use BlzSetAbilityTooltip to import a string?