The Dink Network

Reply to Re: I have an idea...

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
September 17th 2009, 10:28 PM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
I've actually gotten it to work without adding any screens, just by using simple scripts.

From START-1.C:
    add_item("item-fst", 438, 1);
    add_item("item-ite", 438, 2);
    add_item("item-ite", 438, 2);
    add_item("item-arm", 438, 3);
    add_item("item-ite", 438, 2);
    add_item("item-ite", 438, 2);
    add_item("item-ite", 438, 2);
    add_item("item-arm", 438, 3);
    add_item("item-ite", 438, 2);
    add_item("item-ite", 438, 2);
    add_item("item-ite", 438, 2);
    add_item("item-arm", 438, 3);
    add_item("item-ite", 438, 2);
    add_item("item-ite", 438, 2);
    add_item("item-ite", 438, 2);
    add_item("item-arm", 438, 3);

    add_magic("item-mag", 437, 2);
    add_magic("item-mag", 437, 2);
    add_magic("item-mag", 437, 2);
    add_magic("item-mag", 437, 2);
    add_magic("item-mag", 437, 2);
    add_magic("item-mag", 437, 2);
    add_magic("item-mag", 437, 2);
    add_magic("item-mag", 437, 2);

    &cur_weapon = 1;
    arm_weapon();

    &cur_magic = 1;
    arm_magic();


From shop.c:
  if (&result == 1)
  {
    int &place = get_item("item-arm");
    if (&place > 0)
    {
      kill_this_item("item-arm");
      add_item("item-boo", 445, 1);
    }
    else
    {
      say_stop("I have no more item slots!", 1)
    }
    goto End;
  }


Every fourth item slot (the column on the far right side) is now an armour slot. I also made a placeholder for magic, just in case.

What I'm having slight problems with now is how to deal with selecting the placeholders. I've noticed Dink seems to crash when dealing with accidental infinite loops and item arming...