Author Topic: (no subject)  (Read 1674 times)

Anonymous

  • Member
  • *
  • Posts: 545
    • View Profile
(no subject)
« on: February 14, 2004, 08:32:55 PM »
Hey all.  I have a moving item (townsperson) who I want to disapppear after he is spoken to.  I included the #EraseItem and #DeleteItem commands at the end of his program...but he reappears after a few seconds and starts roving around again.  Could anyone please tell me how it is that you permanently delete an item from a board?  I've only been working with the Toolkit for about a week and am still a little confused about item placement and removal.  Anyway, any response is appreciated.  Thanks!

DM
« Last Edit: December 31, 1969, 06:00:00 PM by Anonymous »

Zeros'

  • Member
  • *
  • Posts: 1540
    • View Profile
(no subject)
« Reply #1 on: February 14, 2004, 09:13:25 PM »
hmm...i cant really say...im too damn busy with making my battle system im ripping my hair out (litterly...) you might wanna view the tutorial or e0mial xorlak (xorlak@mysticsoftware.net)
« Last Edit: December 31, 1969, 06:00:00 PM by Zeros' »
\"Runaway with my heart...
 Runaway with my hope...
 If I could make you mine...I\'ll go whereever you will go.\"

\"So lately, I\'ve been wondering...
 Who will be there to take my place...
 When I\'m gone, You\'ll need love...To light the shadows on your face.\"

\"If a great wave should fall...
 It would fall upon us...
 Well I hope there\'s someone out there...Who can bring me back to you.\"

\"Way up high or down low...I\'ll go wherever you will go.\"

\"Runaway with my love.\"

In your heart and mind, I\'ll stay with you all of time...

Cesque

  • Member
  • *
  • Posts: 2178
    • View Profile
    • http://cesque.mysticsoftware.net
(no subject)
« Reply #2 on: February 15, 2004, 06:35:26 AM »
Hmmm... I've never actually tried that. As far as I see, there is no real way to get rid of item which is on the board already when you enter it, especially moving one... Even if there is, item will reappear as you enter board again... Propably Xorlak knows the way.

You can make 2 versions of that board, with item and without, then send player to the second board by using #send("board-name-here",playerx[0]!,playery[0]!,playerz[0]!) - it will send player to another board, using variables indicating where he already is, so he will appear at the same place but on another board.
« Last Edit: December 31, 1969, 06:00:00 PM by Cesque »
TKGB cancelled Spyder.

Bastard.

Xorlak

  • Administrator
  • Member
  • *****
  • Posts: 2225
    • View Profile
    • http://darkagegames.net
(no subject)
« Reply #3 on: February 15, 2004, 11:32:27 AM »
Quote from: Dandy Masher,Saturday, February 14, 2004 8:32 PM
Hey all.  I have a moving item (townsperson) who I want to disapppear after he is spoken to.  I included the #EraseItem and #DeleteItem commands at the end of his program...but he reappears after a few seconds and starts roving around again.  Could anyone please tell me how it is that you permanently delete an item from a board?  I've only been working with the Toolkit for about a week and am still a little confused about item placement and removal.  Anyway, any response is appreciated.  Thanks!

DM
Hmmm... yeah, I think I ran into this problem before.  What's happening is the item's runtime program continues to run after it's deleted, so the item regenerates.

What I do is make a small, boxed in area (with solid tiles) out of sight, and use #putitem to send it there, effectively deleting it.  Note that it will still come back if you leave the board.

If you need to get rid of it permanently, don't set it down in the board editor.  Instead set it when you enter the board.  In your warp program, do something like this:

#send( ... )
#if(talkedtoNPC!=0)
{
#createitem("npc.itm",0)
#putitem(0,x!,y!,layer!)
}

Now when you talk to the person, set #talkedtoNPC!=1 and delete him.  When you come back to the board after this, the NPC won't get set.
« Last Edit: February 15, 2004, 11:34:16 AM by Xorlak »

Anonymous

  • Member
  • *
  • Posts: 545
    • View Profile
(no subject)
« Reply #4 on: February 15, 2004, 01:12:37 PM »
Xorlak, thank you very much for your answer!  This has been driving me batty for a couple of days.

So anyway, I should put this code in the program that is created when I set down my board-to-board warps...?  *checks*  Okay, I see what you mean!  Thanks for the advice, man!

DM
« Last Edit: December 31, 1969, 06:00:00 PM by Anonymous »