PDA

View Full Version : Item/dialog script


newbiemodder
03-04-2009, 11:40 PM
Looking for help, again. I'm hoping for a script that will fire a .dlg file once a specific item(ex. lightsaber) is obtained by your pc. (TSL). Thanks.

Star Admiral
03-05-2009, 02:10 AM
That would be the ActionStartConversation() function. The script will vary depending on how the item is obtained by the player. Is it given by another character, taken from a container, etc?

- Star Admiral

newbiemodder
03-05-2009, 08:47 AM
That would be the ActionStartConversation() function. The script will vary depending on how the item is obtained by the player. Is it given by another character, taken from a container, etc?

- Star Admiral

I would need one after obtaining from a placeable and one after purchase from a merchant. Thanks

Malxados
03-05-2009, 04:24 PM
Im not sure about the merchant, but for the placeable (assuming its unique) you would use either the "OnOpen' or "OnClosed" script options when editing the .utp, or something like that. Lemme look up a script real quick...

EDIT: here's what it might look like:void main() {
ActionStartConversation(GetFirstPC(),"dlg_filenamehere");
}

I'm sure Star Admiral could help you with any needed specifics.