Jump to content

UA

Member
  • Posts

    128
  • Joined

  • Last visited

Posts posted by UA

  1. Well, what can you think of that you could do with an NPC? You could..

     

    ..do a kidnapping.

    ..make the plot revolve around the NPC, and make having the NPC essential for completing the scenario (e.g. NPC only has the magic key to unlock a door, or has vital information)

  2. I don't need some special editor to be able to code.

     

    I've coded a dozen languages in my life, and I've lost count of the number of times;

     

    1. Someone reccomends a fancy text editor to me.

    2. I download it, and it turns out to be some horrible, bloated MDI interface with syntax highlighting and a function library. (none of which I need).

    3. I run screaming back to Notepad, which serves my purpose fine.

     

    It could be good for Script Newbies to get to learn the system, though.

  3. Quote:
    Originally written by Snuff ling kin:
    Try incrementally checking it.

    good = false;
    good = char_on_spot(19,36);
    if (good = false) good = (char_on_spot(20,37));
    if (good = false) good = (char_on_spot(20,37));
    if (good = false) good = (char_on_spot(20,37));

    if (good = true) {
    // on mat

    Etc.
    It works like this.

    Good is false.
    Good is whatever char_on_spot returns (i.e. true if char there, false otherwise).
    Then, if good is still false, it sets good to whether char is on the next spot. And again and again until it's tried all the spots. Then you check good, see if it's true, if it is, a char is on any of the spots.
  4. Try incrementally checking it.

     

    good = false;

    good = (char_on_spot(19,36));

    if (good = false) good = (char_on_spot(20,37));

    if (good = false) good = (char_on_spot(20,37));

    if (good = false) good = (char_on_spot(20,37));

     

    if (good = true) {

    // on mat

     

    Etc.

×
×
  • Create New...