STRINGS

Ask for help

Moderators: Murderator+, Murderator

Post Reply
raiden
Posts: 7
Joined: 2004-12-16 21:39:52

STRINGS

Post by raiden »

Is there any function to split a string? For example if i have "hey you", is there any way to set a var a = hey and a var b = you ?
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Re: STRINGS

Post by Edred »

raiden wrote:Is there any function to split a string? For example if i have "hey you", is there any way to set a var a = hey and a var b = you ?


VAR a = 'hey'
VAR b = ' '
VAR c = 'you'
VAR d = a+b+c
raiden
Posts: 7
Joined: 2004-12-16 21:39:52

Post by raiden »

i need to SPLIT them, not to ADD :D
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

raiden wrote:i need to SPLIT them, not to ADD :D


VAR a = 'hey you'
VAR b = left( a, 3 )
VAR c = right( a, 3 )
VAR d = mid( a, 4, 1 )
; b = 'hey'
; c = 'you'
; d = ' '
raiden
Posts: 7
Joined: 2004-12-16 21:39:52

Post by raiden »

Is there any way to use UO.InJournal() to search for party messages? Party messages are not considered as journal lines.. Infact I don't see them in ,showjournal neither.
clagio
Posts: 58
Joined: 2004-05-09 19:53:49

Post by clagio »

at the moment isn't possible.. :(
Post Reply