Difference between revisions of "Module:Sandbox/Arcangelus/doc"

From RimWorld Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
==Description==
 
==Description==
 
This is a doc attached to my sandbox. I'll use it to see the effects of my changes W/o messing something important
 
This is a doc attached to my sandbox. I'll use it to see the effects of my changes W/o messing something important
 +
 +
NOTE: LUA is usually slower than ParserFunctions for short statements. The factor varies from 7-1 to 2-1.<br/>
 +
Lua only is an advantage to long statements, nested logic, loops (maybe others case i don't see right now).
 
<!--
 
<!--
 
Hello function:
 
Hello function:
 
{{#invoke:Sandbox/Arcangelus|hello}}-->
 
{{#invoke:Sandbox/Arcangelus|hello}}-->
  
Calculo 1 ['''SkillValue''']
+
expr only uses 1 Preprocessor visited node count, in general. Variables may change that.
{{#invoke:Sandbox/Arcangelus|SkillValue|2|3|4}}
+
-----
 +
function p._TableRow(skillBase, skillBonus, statMin, statMax, capImportance, capLimit, resultCols, LV, Ln)
 +
 
 +
<!--{{#invoke:Sandbox/Arcangelus|spliting|"Texto a separar"|" "|2}}-->
  
2+3*4 = {{#expr: 2 + 3*4}}
+
<!--{{#invoke:Sandbox/Arcangelus|test|}}-->

Latest revision as of 18:05, 21 August 2024

Welcome to the RimWorld Wiki sandbox!
This sandbox is where you can experiment and practice working on a wiki page. This page will usually have little or no content. Feel free to add content or to make changes and save them to see the results.

To learn about editing and formatting start here: Help:Contents. Just start with the basics... enter some text, and learn the other pieces as you go.

Your content contributions are welcome and important. The wiki is a collaborative effort and others can help with formatting and other improvements.]

Best wishes!

Description[edit]

This is a doc attached to my sandbox. I'll use it to see the effects of my changes W/o messing something important

NOTE: LUA is usually slower than ParserFunctions for short statements. The factor varies from 7-1 to 2-1.
Lua only is an advantage to long statements, nested logic, loops (maybe others case i don't see right now).

expr only uses 1 Preprocessor visited node count, in general. Variables may change that.


function p._TableRow(skillBase, skillBonus, statMin, statMax, capImportance, capLimit, resultCols, LV, Ln)