Quick question on dialog topic + darkbrotherhood assassins

Post » Tue Dec 29, 2009 6:16 pm

I want to make a simple mod where you can't get the Solstheim rumor or the dark brotherhood assassins to appear until you reach level 10.

For the rumor, under function/variable can I set Function - PC Level = 10?

How would I change the script for the assassins? I looked but I didn't understand any of the code.
User avatar
OTTO
 
Posts: 3367
Joined: Thu May 17, 2007 6:22 pm

Post » Tue Dec 29, 2009 2:38 pm

For the rumor, I'd use level >= 10, that way the player will get the rumor even if they add the mod after level 10, but that's up to you.

As for the script, you'll want to add this block:

if ( Player->GetLevel < 10 )     returnendif


between these two blocks:

if ( GetJournalIndex TR_dbAttack >= 50 )	returnendifif ( player->GetLevel >= 30 )	set playerLevel to 4else	if ( player->GetLevel >=20 )		set playerLevel to 3	else		if ( player->GetLevel >= 10 )			set playerLevel to 2		else			set playerLevel to 1		endif	endifendif


So it'll look something like this:

if ( GetJournalIndex TR_dbAttack >= 50 )	returnendifif ( Player->GetLevel < 10 )     returnendifif ( player->GetLevel >= 30 )	set playerLevel to 4else	if ( player->GetLevel >=20 )		set playerLevel to 3	else		if ( player->GetLevel >= 10 )			set playerLevel to 2		else			set playerLevel to 1		endif	endifendif


That should stop the assassins from attacking until you're level 10. Note that modifying that script will cause your mod to conflict with any other mod that also modifies that script, like my increased DB assassin mod.
User avatar
Rachell Katherine
 
Posts: 3380
Joined: Wed Oct 11, 2006 5:21 pm

Post » Tue Dec 29, 2009 3:55 pm

Thank you very much!!!! :)

Yes, this is just for my own game.
User avatar
Ashley Hill
 
Posts: 3516
Joined: Tue Jul 04, 2006 5:27 am


Return to III - Morrowind