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.

[K1]Die-script

Page: 1 of 1
 Mindtwistah
01-30-2008, 1:25 PM
#1
Can someone tell me a script to make the PC and the whole party die?

And I have a minor other question: When you want to show the name of your PC in dialog, do you type [FULLNAME] ?
 Marius Fett
01-30-2008, 2:29 PM
#2
Not too sure about the script but if you want the PC's name to appear in dialog you have to type <FullName>. You can also use <FirstName> and <LastName> as well as several more.

They're all listed in stringtokens.2da.
 stoffe
01-31-2008, 6:54 AM
#3
Can someone tell me a script to make the PC and the whole party die?



void main() {
int i;
for (i = 0; i < GetPartyMemberCount(); i++) {
object oParty = GetPartyMemberByIndex(i);
SetMinOneHP(oParty, FALSE);
SetPlotFlag(oParty, FALSE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), oParty);
}
}
 Mindtwistah
01-31-2008, 8:50 AM
#4
Thank you Stoffe :)

DarthDingDong: What's the difference between <FirstName> and <LastName>? Does it display different things?
 Marius Fett
01-31-2008, 10:55 AM
#5
Well say your PC's name is Muhammed Ali. If you enter <FirstName> it will say Muhammed in the conversation. But if you enter <LastName> it'll say Ali...
 Mindtwistah
01-31-2008, 1:18 PM
#6
But what if you only name your PC Muhammed and enter <LastName> in a conversation? Will it say Muhammed since it is the last one, though it is the first one too?
Page: 1 of 1