String: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
Redirected page to Datatype Constants#string
Line 1: Line 1:
{{#vardefine:name|string}}
#REDIRECT [[Datatype Constants#string]]
{{#customtitle:{{#var:name}}|{{#var:name}}}}
{{Primitive|Name={{#var:name}}}}
==Concatenating Strings==
{{CodeSample|
code=
<syntaxhighlight>
print("My base muscle: " + my_basestat($stat[muscle]));
print("My base moxie: " + my_basestat($stat[moxie]));
print("My base mysticality: " + my_basestat($stat[mysticality]));
// To grab your base main stat, you can:
print("My base main stat: " + my_basestat(my_primestat()));
// To grab substats, you can:
print("My current muscle substats: " + my_basestat($stat[submuscle]));
</syntaxhighlight>}}

Revision as of 01:18, 13 March 2010