Author Topic: Nub help?  (Read 2566 times)

RaXioN

  • Member
  • *
  • Posts: 10
    • View Profile
Nub help?
« on: July 28, 2007, 11:00:45 AM »
Hello! I new to this site and the toolkit.  !!!Nub alert right here!!!  I did not see a toolkit forum to ask a question and I saw that ppl has asked questions here so Im goin to here.  If this is not the right spot for this please move it and let me know were to post next time. thanx.  Iv been using toolkit 3 for about 2 weeks now and I know my way around it pretty good and I know some of the programing ok.  But there are something I just cant get to work.  Iv spent days on how to make an chest, I have download methods and tryed to alter them to make them simpler and whatnot.  Can anyone help me?  It doesnt have to be something spectacilar just somthing that will allow chest to give items/gold, and to appear open.  I have tryed this method i downloaded but it will give me put error, and I can trick it but the chest will keep giving me the item over and over and will not show the open graphic.  I thought more detailed explanation will help anyone that will help.  And Im also looking for a prg that will allow items to be picked up on the board.  I made a prg that will do this but it will only work with one item.  example if I have w rubys on the same board then when I pick one up both disappear.  Any help will be appreaciated.  By the way the makers of this toolkit are bomb ass guinisses.  props to yall.
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Check Out These Oblivion Video!
    On Top
    On Top 2
    On Top Extra
    Through The Fire & Flames[/list]

    Dude Man

    • Member
    • *
    • Posts: 6393
      • View Profile
      • http://dmdgames.mysticsoftware.net//
    Re: Nub help?
    « Reply #1 on: July 28, 2007, 02:43:42 PM »
    What I usually did (but this was back in TK2) was make programs that have a conditional activation, and made them appear as a closed chest, and on the board I put the tile of an open chest underneath. I don't know if it works like that anymore since I haven't used TK3 much for a while, and I never completed a game with TK3.

    Maybe what you could do is just post your code, it might be some error me or somebody else can point out.
    « Last Edit: December 31, 1969, 06:00:00 PM by Guest »
    ~Welcome back mysticsoftware.net??
    The Black Walkway

    K-hos

    • Member
    • *
    • Posts: 22
      • View Profile
    Re: Nub help?
    « Reply #2 on: July 29, 2007, 12:11:30 AM »
    Do what dude man said.

    Then make a .prg that has this in it:
    Code: [Select]
    if(ChestOpen! > 0)
    {
    Mwin("@%#^ son of a @&^% *&^@!!!! Its empty!")
    wait()
    mwincsl()
    }

    if(ChestOpen! <= 0)
    {
    Mwin("Hay look! an item!")
    wait()
    mwincsl()
    GiveItem(filename$)
    ChestOpen! = 1
    }

    Let me explain this, the “if(ChestOpen! <= 0)” checks to see if “ChestOpen!” is less then or equal to zero, and since all variables are equal to zero before declared, it will run the code and give you the item. Then we declare that “ChestOpen! = 1” so that next time you run the .prg it will run the first "if()".
    « Last Edit: December 31, 1969, 06:00:00 PM by Guest »
    in words backwards put to liked lad this lad, a was there Once
    end. The  flamed. and stabbed got he ,day fateful one but sig. his

    Dude Man

    • Member
    • *
    • Posts: 6393
      • View Profile
      • http://dmdgames.mysticsoftware.net//
    Re: Nub help?
    « Reply #3 on: July 29, 2007, 12:18:43 AM »
    Yeah, but he also wants to have it so the chest displays that's open. I assume that's either down with custom postures with items or the good old SetTile command or whatever it's called. I'll admit I've never used it.
    « Last Edit: December 31, 1969, 06:00:00 PM by Guest »
    ~Welcome back mysticsoftware.net??
    The Black Walkway

    K-hos

    • Member
    • *
    • Posts: 22
      • View Profile
    Re: Nub help?
    « Reply #4 on: July 29, 2007, 12:33:59 AM »
    that’s why I said to do what you siad. Cuz you were right. Wink

    In more detail:
    Open a board, put a opened chest tile on the board then set the .prg, and go to “advanced“> “display program as” then select a tile (a closed chest). Now click “conditional Activation” (don’t mess with the stuff next to it)

    And BAM! Your good to go.
    « Last Edit: December 31, 1969, 06:00:00 PM by Guest »
    in words backwards put to liked lad this lad, a was there Once
    end. The  flamed. and stabbed got he ,day fateful one but sig. his

    RaXioN

    • Member
    • *
    • Posts: 10
      • View Profile
    Re: Nub help?
    « Reply #5 on: July 29, 2007, 11:34:25 AM »
    Will this .prg also remove the image of the closed chest?  or would i have to include a clearitem command ex.(clearitem("closedchest.itm"))?  Thanx for the help.

    p.s. Well as I sit here thinking about it, this is a stupid question.  it was already explained.  what can I say  im a nub.
    « Last Edit: December 31, 1969, 06:00:00 PM by RaXioN »
    Check Out These Oblivion Video!
      On Top
      On Top 2
      On Top Extra
      Through The Fire & Flames[/list]

      RaXioN

      • Member
      • *
      • Posts: 10
        • View Profile
      Re: Nub help?
      « Reply #6 on: July 29, 2007, 01:07:14 PM »
      By what yall have said above would this .prg work for items on the map that you can pick up.  setting "display progam as" as the item's image/tile.

      if(Pickupitem > 0)
      {
      tiletype(normal)
      }

      if(Pickupitem <= 0)
      {
      Mwin("you have found a Red Ruby")
      wait()
      mwincsl()
      GiveItem(RedRuby.itm)
      Pickupitem = 1
      }
      « Last Edit: December 31, 1969, 06:00:00 PM by Guest »
      Check Out These Oblivion Video!
        On Top
        On Top 2
        On Top Extra
        Through The Fire & Flames[/list]