Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-02-2009, 07:16 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Deleting 'player.' objects

So, I'm storing items as

HTML Code:
  player.items.(id).(flag) = value;
Now, I'm wanting to delete the items from the player.items list
HTML Code:
  player.items.(@ temp.id).clearvars();
  player.items.(@ temp.id).clearemptyvars();
  player.items.(@ temp.id) = "";
Works fine, it clears all the sub flags of the object. Yay! However...

However, when I'm reading the objects var names, it's still showing the item ID in the list
HTML Code:
  player.items.getdynamicvarnames();
I thought using this
HTML Code:
  player.items.(@ temp.id) = "";
Would fix this, but it's not. Any ideas? thanks
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.