| 01-09-2006, 05:01 PM | #1 |
OK I understand how it works and how I should edit it, the thing I dont understand is how the #pc#,#hello# and #type# works. they return playername,hello or greetings and the type of the unit I think. I cant find any Initialization trigger for these ones so I wonder how did he set them to their values and how can I edit them? (I can upload the map if someone wants to look at it) |
| 01-09-2006, 05:46 PM | #2 |
He has a function that goes through a string and checks for these special commands, then that function calls others that supply the right replacement string. You must initialize some of these strings (like random greetings; you obviously don't have to initialize player names) yourself, simply set the corresponding global variable arrays at map initialization. |
| 01-09-2006, 06:28 PM | #3 |
The thing is that there are no global arrays nor any trigger where he initialize the text as I can see EDIT: Ok Ive might found it in the "Custom Script Code" EDIT: (again) Yeah Ive defenitly found it :) copied the "Custom Script Code" to notepad and searched for #hello# Well thx anyway for explaning how it works, and also for replying. |
| 01-09-2006, 07:06 PM | #4 |
Well, I don't know where you got the system, but at wc3jass, KaTTaNa also posted a detailed explanation on how to use it, what variables it needs etc... |
