FLINT
Home
News
Guide
History
Classes
Races
Commands
Spells
Maps
Policy
Stats
Authors
TechInfo
Admin
Links
Lands of stone

Text Manipulation

Command :
*REPLACE -[s | l | e]<delim><occur> str1 str2

This function replaces str1 with str2. Both strings must be delimited, the default char being ' The search operates within a line and does not resize it, this must be done manually using *wrap.

You must specify short long or event text, and if an occurence is given it will skip to replace the nth entry as requested if found. The delimiter can be any standard punctuation character.

Examples :

: *replace -s2 'from' 'form'
  changes the second occurence of from to from in the short desc.

: *replace -l 'give out' 'take in'
  changes the first text with a space in it to a second similar text.

: *replace -l"3 "doesn't give" "does not offer"
  changes the first text with a ' in it to a second different text

ac active add advance align
allow append attack auth award
bonus broad c charm clan
clear connect contract create creature
crtimer delete drill dust eaves
echo edesc enemy enter equip
exit f find finger flushcrtobj
flushrooms force gamestat gcast global
group help i info invis
ledit list lname lock log
logic memory mflag monster move
mset mtext mute name notepad
object oflag oset otext owner
parameter perm pflag possess prepend
ptext purge pset quest reload
replace rflag rm room rset
rtext s save send set
shutdown silence spy status t
talk tedit teleport tell text
users weather wrap xflag xset
xtext zap
Flint
Webmaster: Shihan

Gimp

Page last changed: Mon Aug 2 10:36:47 BST 2004