Triggers in KotOR to the best of my knowledge are used to accomplish several things in the game. They can be used to trigger (!) a conversation, a transition to another module in the game, start a fight and more things.
Which these “things” are is declared - you expected it by now – in a corresponding .utt file. And again – you expected that by now already too – that .utt file must be explained in another thread.
So how do I place a Trigger? Placing Triggers are different to other things which can be spawned with the .git file in so far, that Triggers define an area. That particular area can be a triangle or a rectangle.
Okay, by now you know how to get coordinates in the game with the whereami cheat (I hope). Declare the center of your trigger area and get the coordinates. In this case don’t look at the center as the real centerpoint of the trigger area. Center in this case means it is the point from which you make your calculations (see below).
Now that you declared your center point you need three or four more coordinates. These coordinates form the cornerpoints of your trigger area (three if you want to make a triangle, four if you want to make a rectangle).
Note those coordinates down. Lets assume that your “center” coordinate is 109, 80, 0. Then you have to enter these values in the XPosition, YPosition and ZPosition fields.
Now take the first coordinate which you took for the first cornerpoint. Lets assume that this coordinate is 111, 85, 0. Then go to the first set of PointX, PointY, PointZ. Now you must do some calculations: suptract 109 from 111, 80 from 85 and 0 from 0. You should get the results: 2, 5, 0. Enter those results into PointX, PointY, PointZ.
Lets assume the next coordinate is 103, 65, 3. Now subtract 109 from 103, 80 from 65 and 3 from 0. You should get –6, -15, -3. Enter those values into the next PointX, PointY, PointZ block.
Go on with all your cornerpoints. If you use a triangle the fourth PointX, PointY, PointZ all have the value 0.
Please note that you have to determine the cornerpoints in-game. I made the experience that it does not work to just use the values 5, 5, 0 / -5, 5, 0 / -5, -5, 0 / 5, -5, 0 if you want a 10 by 10 rectangle. If one or more of those points is outside where the pc can actually walk in the game the trigger does not work correctly. So you must take the exact coordinates with the whereami cheat for every cornerpoint.
In TemplateResRef you must type in the name of the TemplateResRef which is used in the corresponding .utt file.
What the entries in XOrientation, YOrientation and ZOrientation do I don’t know admittedly.
You can find further information about Triggers here:
http://lucasforums.com/showthread.php?t=145870)