Ok, I have about 3k lines that look like this:
npc = 2 Man 2 7
npc = 3 Man 2 7
npc = 4 Woman 2 7
npc = 5 Woman 2 7
What I need is them to look like this:
Man = 2
Man = 3
Woman = 4
Woman = 5
Anyone have any ideas?
~Sandstorm
Ok, I have about 3k lines that look like this:
npc = 2 Man 2 7
npc = 3 Man 2 7
npc = 4 Woman 2 7
npc = 5 Woman 2 7
What I need is them to look like this:
Man = 2
Man = 3
Woman = 4
Woman = 5
Anyone have any ideas?
~Sandstorm

ctrl R?
No...
Lol.
~Sandstorm
I have no idea what question you are even asking but I assume you are trying to store large amounts of variables in as little lines as possible? If so then use arrays.

no.. he like did something wrong with how it's written and wants to change each line so it will be like..
Man = 2
Man = 3
Woman = 4
Woman = 5
etc. (the numbers go up by one)
99_ I didn't type it, but yes, that's essentially what I mean.
~Sandstorm

is it for like.. every monster? or is it only Men and Women?
It's for every npc, yes.
~Sandstorm

well then nvm.. the numbers are easy but the names would be harder.. You could make another script that will just
Writeln(Monster+' = '+Number);
Inc(Monster);
Inc(Number);
but you would need to put in all the monsters :\
Write a parser and output it however you like
Interested in C# and Electrical Engineering? This might interest you.
There are currently 1 users browsing this thread. (0 members and 1 guests)