In-game Functions: Difference between revisions

m
Further fixes to currency examples
m (Update the currency object names)
m (Further fixes to currency examples)
Line 88: Line 88:


==== Examples ====
==== Examples ====
  <syntaxhighlight lang="js">game.rc.remove(1);</syntaxhighlight>
  <syntaxhighlight lang="js">game.raidCoins.remove(1);</syntaxhighlight>
The above code will remove 1 [[Raid Coins|Raid Coin]] from the player.
The above code will remove 1 [[Raid Coins|Raid Coin]] from the player.


Line 104: Line 104:


==== Examples ====
==== Examples ====
  <syntaxhighlight lang="js">game.sc.set(999);</syntaxhighlight>
  <syntaxhighlight lang="js">game.slayerCoins.set(999);</syntaxhighlight>
The above code will set the player's [[Raid Coins|Raid Coin]] balance to 999, regardless of what the previous balance of raid coins owned was.
The above code will set the player's [[Raid Coins|Raid Coin]] balance to 999, regardless of what the previous balance of raid coins owned was.