View Single Post
  #4  
Old 01-29-2002, 11:36 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
well, lets see

strings can be alphanumeric such as stringname=1,stringies,34kald

you can replace parts of the string with replacestring stringname,index,newstring;
lets say you want to replace the word 'stringies' in the above string, so, you find the index, in this case, 1, you would do replacestring stringname,1,newstringies

you can access parts of the string with #I(stringname,index);
lets say you want to make a npc say the 34kald in stringname
so, message #I(stringname,2);

you can addstring extra strings to stringname with the addstring stringname,text;
lets say you want to add the string bluebellicecreamX2 to stringname, you would do addstring stringname,bluebellicecreamX2;

afterwards stringname=1,stringies,34kald would now be stringname=1,stringies,34kald,bluebellicecreamX2

well, more on strings and arrays tomorrow
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote