Darth_Andrez Posted October 2, 2008 Share Posted October 2, 2008 I'm currently underway with a recruitment/added content mod My problem is that I understand what conditional scripts do however I dont understand how to make one and what condition it will use? Any help would be greatly apreciated! Nanu:¬:12 Link to comment Share on other sites More sharing options...
Istorian Posted October 2, 2008 Share Posted October 2, 2008 A conditional script usually starts with a int StartingConditional() { } instead of a void main()...you also use the return TRUE or FALSE function...perhaps if you tell us what does this conditional do, we may help you more! |I| Link to comment Share on other sites More sharing options...
Darth_Andrez Posted October 2, 2008 Author Share Posted October 2, 2008 This conditional script makes the dialog appear after a certain line has been spoken E.G if someone ask's you to help them and you reply yes that would make the npc tell you how to help him next time you speak and also a dialog starts due to the players alingment points Link to comment Share on other sites More sharing options...
Istorian Posted October 3, 2008 Share Posted October 3, 2008 This conditional script makes the dialog appear after a certain line has been spoken E.G if someone ask's you to help them and you reply yes that would make the npc tell you how to help him next time you speak You should really use a local variable for this one...I don't know many things about local variables, as I'm not that experienced, but you could try this thread: Clicky! It's for TSL, but you should get the feeling of how it works! and also a dialog starts due to the players alingment points That's easy... If you want the player to be evil to unlock the dialog use this: int StartingConditional() { object oPC = GetFirstPC(); if(GetGoodEvilValue(oPC) <= 25) { return TRUE; } else { return FALSE; } } If you want him to be good use this: int StartingConditional() { object oPC = GetFirstPC(); if(GetGoodEvilValue(oPC) >= 75) { return TRUE; } else { return FALSE; } } Hope it works ok! EDIT: You are welcome! |I| Link to comment Share on other sites More sharing options...
Darth_Andrez Posted October 3, 2008 Author Share Posted October 3, 2008 THank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.