Lilith

Extra bonuses [without items]

Recommended Posts

with the updated rA emulator, you could actually achieve the same feature using this method

-	script	Sample	-1,{
	
OnPCStatCalcEvent:
	if (EXTRA_BONUS == 0) end;
	else if (EXTRA_BONUS == 1) {
		bonus bStr, 10;
	} 
	else if (EXTRA_BONUS == 2) {
		bonus bStr, 20;
	} 
	else if (EXTRA_BONUS == 3) {
		bonus bStr, 30;
	}
	end;
}

 

  • Upvote 1

Share this post


Link to post
Share on other sites
Posted (edited)
20 hours ago, Emistry said:

with the updated rA emulator, you could actually achieve the same feature using this method

-	script	Sample	-1,{
	
OnPCStatCalcEvent:
	if (EXTRA_BONUS == 0) end;
	else if (EXTRA_BONUS == 1) {
		bonus bStr, 10;
	} 
	else if (EXTRA_BONUS == 2) {
		bonus bStr, 20;
	} 
	else if (EXTRA_BONUS == 3) {
		bonus bStr, 30;
	}
	end;
}

 

1 problem with the OnPCStatCalcEvent: is that npcs and/or items that use the sc_start script will conflict and clear out the passive bonuses given.

 

issue: sc_start does not call for OnPCStatCalcEvent even tho sc_start actually recalculates a character's stats.

Edited by Kinkykids

Share this post


Link to post
Share on other sites
On 3/16/2020 at 7:11 PM, Emistry said:

with the updated rA emulator, you could actually achieve the same feature using this method

-	script	Sample	-1,{
	
OnPCStatCalcEvent:
	if (EXTRA_BONUS == 0) end;
	else if (EXTRA_BONUS == 1) {
		bonus bStr, 10;
	} 
	else if (EXTRA_BONUS == 2) {
		bonus bStr, 20;
	} 
	else if (EXTRA_BONUS == 3) {
		bonus bStr, 30;
	}
	end;
}

 

Thank you ❤️

On 3/17/2020 at 6:18 AM, Kinkykids said:

1 problem with the OnPCStatCalcEvent: is that npcs and/or items that use the sc_start script will conflict and clear out the passive bonuses given.

issue: sc_start does not call for OnPCStatCalcEvent even tho sc_start actually recalculates a character's stats.

it works on me and no prob with npc with sc bonuses

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.