<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AScaledExperience%2Fdoc</id>
	<title>Module:ScaledExperience/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AScaledExperience%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ScaledExperience/doc&amp;action=history"/>
	<updated>2026-04-30T15:20:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Module:ScaledExperience/doc&amp;diff=34199&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;{{Documentation}} == Usage == Helper module for experience calculations where each action&#039;s experience scales linearly with level, such as the genie lamps.  == Functions == ===Determine Actions Needed=== These functions return the number of actions required to reach a target goal. The only difference between these four functions is optional usage of a starting or target level instead of an experience value. &lt;pre&gt;xp_to_xp_actions(startingExp, targetExp, scalar, base, inte...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ScaledExperience/doc&amp;diff=34199&amp;oldid=prev"/>
		<updated>2024-10-15T23:26:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation}} == Usage == Helper module for experience calculations where each action&amp;#039;s experience scales linearly with level, such as the genie lamps.  == Functions == ===Determine Actions Needed=== These functions return the number of actions required to reach a target goal. The only difference between these four functions is optional usage of a starting or target level instead of an experience value. &amp;lt;pre&amp;gt;xp_to_xp_actions(startingExp, targetExp, scalar, base, inte...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation}}&lt;br /&gt;
== Usage ==&lt;br /&gt;
Helper module for experience calculations where each action&amp;#039;s experience scales linearly with level, such as the genie lamps.&lt;br /&gt;
&lt;br /&gt;
== Functions ==&lt;br /&gt;
===Determine Actions Needed===&lt;br /&gt;
These functions return the number of actions required to reach a target goal. The only difference between these four functions is optional usage of a starting or target level instead of an experience value.&lt;br /&gt;
&amp;lt;pre&amp;gt;xp_to_xp_actions(startingExp, targetExp, scalar, base, intercept)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;xp_to_level_actions(startingExp, targetLevel, scalar, base, intercept)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;level_to_xp_actions(startingLevel, targetExp, scalar, base, intercept)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;level_to_level_actions(startingLevel, targetExp, scalar, base, intercept)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Determine XP gained from Actions===&lt;br /&gt;
These functions return the end experience after a certain number of actions have been taken. The only difference between these two functions is whether it starts from an experience value or a level value.&lt;br /&gt;
&amp;lt;pre&amp;gt;from_actions_xp(startingExp, actions, scalar, base, intercept)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;from_actions_level(startingLevel, actions, scalar, base, intercept)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
===== startingExp, targetExp, startingLevel, and targetLevel =====&lt;br /&gt;
Self-explanatory, input the desired XP or Level depending on what function is used.&lt;br /&gt;
===== scalar =====&lt;br /&gt;
What multiplier of the skill level the experience scales by.&lt;br /&gt;
===== base [Optional] =====&lt;br /&gt;
A flat value to add that is &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; scaled with level.&lt;br /&gt;
===== intercept [Optional] =====&lt;br /&gt;
A level at which the experience starts scaling. At or below this level, only the base experience will be granted. You &amp;#039;&amp;#039;&amp;#039;must add a base experience value&amp;#039;&amp;#039;&amp;#039; to use this parameter, even if that value is 0.&lt;br /&gt;
==== Examples ====&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Lamps from the genie random event&amp;#039;&amp;#039;&amp;#039; reward 10 × the skill level, so only a scalar of 10 would need to be input. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Agility arena tickets&amp;#039;&amp;#039;&amp;#039; reward 240 experience + 5 for every agility level over 40. Therefore the scalar, base, and intercept would be 5, 240, and 40 respectively.&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>