(Original question dealt with characters and .cha files.)
When my character has or had an item, how do I make sure he can't keep getting it back again? Like you can only get it once.
No, you can't delete characters and you export characters to .cha file.
Poo. I hate that.
Alrighty, thanks.
Huh? Edwin Xie's answer didn't make much sence to me. Maybe I don't understand the question. If the item is an object, you can turn the object off. Otherwise, set a variable for whether they've gotten it or not. You can also use the character[CHAR].inv[INVNUMBER] variable to see how many 'copies' of the item the player has. If you don't want them having 2 of the same thing at once, in repeatedly execute (always):
int use;
use=1;
while(use<x){//replace x with number of items
if(character[GetPlayerCharacter()].inv[use]>1){
character[GetPlayerCharacter()].inv[use]=1;
}
use++
}
UpdateInventory();
int use;
use=1;
while(use<x){//replace x with number of items
if(character[GetPlayerCharacter()].inv[use]>1){
character[GetPlayerCharacter()].inv[use]=1;
}
use++
}
UpdateInventory();
That?
Goot, VII Toast modified the title and his post. The post was originally asking about characters.
Soo...that's the code right? ???
VII Toast, I believe I have told you this before. I may be mistaken though.
Please try not to alter your first post. It makes the entire thread make no sense. Instead, you are allowed to start a thread. It is, after all, a new topic and a new question.
I am asking you to please put your original post back to what it was before and start a new thread. Otherwise, I will do it for you. Guess I can't do it myself. :P