Talk:How to Script: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
Matchre is actually very easy to explain, and I think it could be added into the section with the current example shown with MATCHRE so people can understand. They are incredibly useful for keeping the amount of lines your code is down to a minimum. |
Matchre is actually very easy to explain, and I think it could be added into the section with the current example shown with MATCHRE so people can understand. They are incredibly useful for keeping the amount of lines your code is down to a minimum. |
||
Simple explanation is that it functions exactly the same as a MATCH. The pipe | separates each of the regular expressions, and that it must start and end with forward slashes / in StormFront. |
Simple explanation is that it functions exactly the same as a MATCH. The pipe <code>|</code> separates each of the regular expressions, and that it must start and end with forward slashes <code>/</code> in StormFront. |
||
<pre>1 putAway: |
<pre>1 putAway: |
Revision as of 14:54, 21 April 2009
Match section
Matchre is actually very easy to explain, and I think it could be added into the section with the current example shown with MATCHRE so people can understand. They are incredibly useful for keeping the amount of lines your code is down to a minimum.
Simple explanation is that it functions exactly the same as a MATCH. The pipe |
separates each of the regular expressions, and that it must start and end with forward slashes /
in StormFront.
1 putAway: 2 MATCH putAway ...wait 3 MATCHRE cycle /Stow what?|You are already wearing that.|But that is already in your inventory.|You/ 4 PUT stow my pickle 5 MATCHWAIT
-- Tea 20:53, 21 April 2009 (UTC)