- Joined
- Sep 8, 2008
- Messages
- 73
I have a small problem.
First, i'm using a trigger with "a player sends a message" as a event, which is a WEU exclusive event, yet i dont want the 200kb filesize that the entire code uses.
Since this is the only thing i need from it, i would really like to just use a custom script version of it if possible (if anyone can find the specific code snippet and post it that would be great too).
And second, the damn trigger doesent work.
It looks pretty much like this:
EVENT:
Player 1 sends a message
-------And then the same for every other player-------
ACTIONS:
Set "message[Temp_integer]" = Entered Chat String
Thing is, it doesent save the message.
And i also have an integer storing the player that writes every message, called "player_integer[Item_integer]" that is set to the player number of triggering player, yet when i try to convert the number into the players name through "name of player - convert player index to player - "player[(and here goes my array reference)]", WC3 crashes when i try to call it.
SO basically, how do i implement some "getlastchatmessage"-jass function instead of stupid get last entered chat string? I dont know the name of it, you see.
First, i'm using a trigger with "a player sends a message" as a event, which is a WEU exclusive event, yet i dont want the 200kb filesize that the entire code uses.
Since this is the only thing i need from it, i would really like to just use a custom script version of it if possible (if anyone can find the specific code snippet and post it that would be great too).
And second, the damn trigger doesent work.
It looks pretty much like this:
EVENT:
Player 1 sends a message
-------And then the same for every other player-------
ACTIONS:
Set "message[Temp_integer]" = Entered Chat String
Thing is, it doesent save the message.
And i also have an integer storing the player that writes every message, called "player_integer[Item_integer]" that is set to the player number of triggering player, yet when i try to convert the number into the players name through "name of player - convert player index to player - "player[(and here goes my array reference)]", WC3 crashes when i try to call it.
SO basically, how do i implement some "getlastchatmessage"-jass function instead of stupid get last entered chat string? I dont know the name of it, you see.