Terraria Wiki

  • Discussions are now available on the Terraria Wiki.
  • Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
Register
Advertisement

{{strCount | t = target| s = searchstring}}
This counts the number of instances searchstring occurs within the target string.
It has one caveat: spaces and underscores (_) are interchangeable. If you need to distinguish between the two, you should not use this template. This was done to preserve spaces.
This is a "quick and dirty" method; there are other ways to accomplish this task.
0


Advertisement