Red King
Junior Member
Posts: 21
– / / –
Joined: Feb 2007
|
O.P. a problem scripting :/ [NOW SOLVED THANKS]
hey i'm kinda new to scripting but i knw one thing that should be pretty easy..yet it dont do it right..text replacement
some letters i try to have replaced work the way they should but many many others don't
the replacements go for example
Message = Message.replace(/a/gi,"(other wanted character)");
as the part that would replace a sertain piece of text
some of these work but most of my list just randomises the letter it becomes
i was trying to re-create the al bhed translators of final fantasy 10 into an msn script.. which i thougt i had working until i saw most of my letters were made wrong after i finished writing the script
what i was trying to make was
a b c d e f g h i j k l m n o p q r s t u v w x y z =
y p l t a v k r e z g m s h u b x n c d i j f q o w
as my wa of shortcutting to al bhed from the game
but instead when i test the finished script i'd end up with something rediculous like 3 S's 2 T's a few J's and maybe a Q where it belongs and everything lse is random scatter
can anyone help me out here?
This post was edited on 02-14-2007 at 09:19 PM by Red King.
|
|