Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

fire script when activate armband

Page: 1 of 1
 Mindtwistah
06-28-2007, 4:11 PM
#1
How can I make my own costume armband that fires a script when I activate it?
 SithRevan
06-28-2007, 4:53 PM
#2
Yes, you will need a script that starts some custom dialog you made. I like to use this one for Kotor 2...


void main() {
SetKeepStealthInDialog(1);
ActionStartConversation(GetFirstPC(), "Your_Dialog", 0, 0, 0, "", "", "", "", "", "", 0, 0xFFFFFFFF, 0xFFFFFFFF, 0);
}


and this one for Kotor 1...


void main() {
ActionStartConversation(GetFirstPC(), "Your_Dialog", 0, 0, 0, "", "", "", "", "", "", 0, 0xFFFFFFFF, 0xFFFFFFFF, 0);
}


When and if you use these scripts in your armband remember to replace the Your_Dialog line in the script with the name of your dialog file.;)

Hope this helps.

Oh yeah also, you will need to make a new line in the spells.2da but I won't get into the details on doing that.
 Mindtwistah
07-08-2007, 4:11 PM
#3
Can someone tell me what I have to do with Spells.2da?
Page: 1 of 1