Template:Optimal quest/action/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
{{ |
{{Documentation}} |
||
This template can be used for a standardised way to insert a notice that tells players to perform a simple action, for the [[Optimal Quest Guide]]. This can be used in a similar way to the [[Template:Optimal quest/train|train]] template. |
|||
The '''Optimal quest''' template uses <code><nowiki>{{SCP}}</nowiki></code> and other elements and is featured only on the [[Optimal quest guide]] page. It uses the variables used on the guide page to generate a string and update the template. For any given <code>skill</code> the variable <code>skillxp</code> needs to be defined in advance. |
|||
Example: {{t|Optimal quest/action|Build an [[oak larder]] in your [[Player-owned House|PoH]]|skill=construction|xp=480}} results in the following, assuming the player has exactly 20,000 [[Construction]] experience before this action. |
|||
It creates a list of skill levels based on the previous value in the variable, plus the specified experience, and increments the value of the variable to that value. |
|||
{{#vardefine:constructionxp|20000}} |
|||
==Usage== |
|||
Build an [[oak larder]] in your [[Player-owned House|PoH]]. This gives {{SCP|construction|480|link=yes}} experience{{#ifeq:480|0|<!-- no xp rewarded --> |
|||
<code><nowiki>{{Optimal quest|<skill>=<xp>|<skill>=<xp>|etc...}}</nowiki></code> |
|||
|, training from level {{Level|{{#var:constructionxp}}}} to level {{Level| {{#vardefineecho:constructionxp| {{#expr:{{#var:constructionxp}} + 480}} }}}} |
|||
}}. |
|||
==Example== |
|||
<pre>{{#vardefine:magicxp|{{XP|19}}}} |
|||
{{#vardefine:prayerxp|{{XP|42}}}} |
|||
{{#vardefine:constructionxp|{{XP|95}}}} |
|||
{{Optimal quest|magic=10000|prayer=9500|construction=191919}}</pre> |
|||
{{#vardefine:magicxp|{{XP|19}}}}{{#vardefine:prayerxp|{{XP|42}}}}{{#vardefine:constructionxp|{{XP|95}}}} |
|||
{{Optimal quest|magic=10000|prayer=9500|construction=191919}} |
|||
==See also== |
|||
*[[Template:Optimal quest/train|Skill training sub-template]] |
|||
*[[Optimal quest guide]] |
|||
<includeonly>[[Category:Image templates|{{PAGENAME}}]]</includeonly> |
|||
{{TemplateData|<templatedata> |
|||
{ |
|||
"params": { |
|||
"attack": { |
|||
"label": "Attack", |
|||
"description": "Attack experience gained", |
|||
"type": "number" |
|||
}, |
|||
"defence": { |
|||
"label": "Defence", |
|||
"description": "Defence experience gained", |
|||
"type": "number" |
|||
}, |
|||
"strength": { |
|||
"label": "Strength", |
|||
"description": "Strength experience gained", |
|||
"type": "number" |
|||
}, |
|||
"hitpoints": { |
|||
"label": "Hitpoints", |
|||
"description": "Hitpoints experience gained", |
|||
"type": "number" |
|||
}, |
|||
"ranged": { |
|||
"label": "Ranged", |
|||
"description": "Ranged experience gained", |
|||
"type": "number" |
|||
}, |
|||
"prayer": { |
|||
"label": "Prayer", |
|||
"description": "Prayer experience gained", |
|||
"type": "number" |
|||
}, |
|||
"magic": { |
|||
"label": "Magic", |
|||
"description": "Magic experience gained", |
|||
"type": "number" |
|||
}, |
|||
"cooking": { |
|||
"label": "Cooking", |
|||
"description": "Cooking experience gained", |
|||
"type": "number" |
|||
}, |
|||
"woodcutting": { |
|||
"label": "Woodcutting", |
|||
"description": "Woodcutting experience gained", |
|||
"type": "number" |
|||
}, |
|||
"fletching": { |
|||
"label": "Fletching", |
|||
"description": "Fletching experience gained", |
|||
"type": "number" |
|||
}, |
|||
"fishing": { |
|||
"label": "Fishing", |
|||
"description": "Fishing experience gained", |
|||
"type": "number" |
|||
}, |
|||
"firemaking": { |
|||
"label": "Firemaking", |
|||
"description": "Firemaking experience gained", |
|||
"type": "number" |
|||
}, |
|||
"crafting": { |
|||
"label": "Crafting", |
|||
"description": "Crafting experience gained", |
|||
"type": "number" |
|||
}, |
|||
"smithing": { |
|||
"label": "Smithing", |
|||
"description": "Smithing experience gained", |
|||
"type": "number" |
|||
}, |
|||
"mining": { |
|||
"label": "Mining", |
|||
"description": "Mining experience gained", |
|||
"type": "number" |
|||
}, |
|||
"herblore": { |
|||
"label": "Herblore", |
|||
"description": "Herblore experience gained", |
|||
"type": "number" |
|||
}, |
|||
"agility": { |
|||
"label": "Agility", |
|||
"description": "Agility experience gained", |
|||
"type": "number" |
|||
}, |
|||
"thieving": { |
|||
"label": "Thieving", |
|||
"description": "Thieving experience gained", |
|||
"type": "number" |
|||
}, |
|||
"slayer": { |
|||
"label": "Slayer", |
|||
"description": "Slayer experience gained", |
|||
"type": "number" |
|||
}, |
|||
"farming": { |
|||
"label": "Farming", |
|||
"description": "Farming experience gained", |
|||
"type": "number" |
|||
}, |
|||
"runecraft": { |
|||
"label": "Runecraft", |
|||
"description": "Runecraft experience gained", |
|||
"type": "number" |
|||
}, |
|||
"hunter": { |
|||
"label": "Hunter", |
|||
"description": "Hunter experience gained", |
|||
"type": "number" |
|||
}, |
|||
"construction": { |
|||
"label": "Construction", |
|||
"description": "Construction experience gained", |
|||
"type": "number" |
|||
} |
|||
}, |
|||
"description": "Keeps track of levels and outputs any levels that are specified in its parameters. Used on [[Optimal Quest Guide]] and on [[:Category:Account builds|Account builds]]", |
|||
"format": "inline" |
|||
} |
|||
</templatedata>}} |
Latest revision as of 11:51, 17 October 2024
This template can be used for a standardised way to insert a notice that tells players to perform a simple action, for the Optimal Quest Guide. This can be used in a similar way to the train template.
Example: {{Optimal quest/action|Build an oak larder in your PoH|skill=construction|xp=480}}
results in the following, assuming the player has exactly 20,000 Construction experience before this action.
Build an oak larder in your PoH. This gives 480 Construction experience, training from level 33 to level 34.