Results 1 to 10 of 10

Thread: Changing many different things at once?

  1. #1
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Changing many different things at once?

    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

  2. #2
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ctrl R?

  3. #3
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No...

    Lol.

    ~Sandstorm

  4. #4
    Join Date
    Feb 2006
    Location
    Pennsylvania
    Posts
    1,524
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    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.

  5. #5
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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)

  6. #6
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    99_ I didn't type it, but yes, that's essentially what I mean.

    ~Sandstorm

  7. #7
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    is it for like.. every monster? or is it only Men and Women?

  8. #8
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's for every npc, yes.

    ~Sandstorm

  9. #9
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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 :\

  10. #10
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Write a parser and output it however you like
    Interested in C# and Electrical Engineering? This might interest you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Changing IP
    By Home in forum Computer Help and Tutorials
    Replies: 21
    Last Post: 02-22-2009, 09:46 PM
  2. IP Changing
    By Hey321 in forum SRL Site Discussion
    Replies: 7
    Last Post: 03-27-2007, 11:35 PM
  3. loads to do before changing.
    By macromacro123 in forum OSR Help
    Replies: 6
    Last Post: 03-08-2007, 12:24 AM
  4. changing probs
    By macromacro123 in forum OSR Help
    Replies: 5
    Last Post: 03-03-2007, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •