H5 script functions

Maps and the art of mapmaking.
Sarvi
Leprechaun
Leprechaun
Posts: 46
Joined: 29 Sep 2006

H5 script functions

Unread postby Sarvi » 24 Jan 2008, 12:07

Does anyone know where i can find the complete set of script functions - including ones that are not in the manual? (e.g. GetPlayerState() - what does it do?).
Ach wie schoen das niemand weiss....

User avatar
rdeford
Assassin
Assassin
Posts: 299
Joined: 17 Apr 2007
Location: Sequim, USA
Contact:

Re: H5 script functions

Unread postby rdeford » 24 Jan 2008, 16:55

Sarvi wrote:Does anyone know where i can find the complete set of script functions - including ones that are not in the manual? (e.g. GetPlayerState() - what does it do?).
I haven't yet found such a list. Hopefully, someone else can, like Neckie?

To find out what an undocumented function does, I use it in a test function that has an embedded print() statement in it. For example, something like this:

Code: Select all

print("Player State P1 = ",  GetPlayerState(PLAYER_1));
In this case, I would probable make a series of such statements, one for each player, and then trigger them each new day. Then I would play my test map with the console screen showing and do things to the players and see what happens to their status. As I recall, GetPlayerState returns a numerical result depending on the state of the payer, such as: alive and well, not in game, etc. I seem to remember that it returns a 1 for a player that is alive and well.
rdeford, Mage Of Soquim

“Forgiving and being forgiven, loving and being loved,
living and letting live, is the simple basis for it all."

Ernest Holmes 1984


Return to “Mapmaking Guild”

Who is online

Users browsing this forum: No registered users and 0 guests