First of all, it must be "objekte.txt"

Next:

In Antwort auf:

How to add an object to my inventory from the start of the game?




quote from the txt-file:

In Antwort auf:

give_item(a,b);
Gives the player b items with the ID a




So, just call this function from main and you get these items - Remember replacing a with the ID of the object and B with the number

In Antwort auf:

how to add an object (a gun) on my level for pickup up in inventory?




I wrote a really simple action for it, also in the readme.txt - but the playerpointer must be assigned to your player, then you have to "walk over" the item. Insert the ID of the object in Skill1!:

In Antwort auf:


[Code]
ACTION take_me {
WHILE(1) {
WHILE(player==null) { wait(1); }
WHILE(vec_dist(player.x,my.x)<50) { give_item(INT(my.skill1),1); ent_remove(me); return; }
wait(1);
}
}







To equip it: Use the item-functions, there is an explanation in "readme.txt"

I hope that helps

Last edited by Error014; 05/07/04 04:34.

Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!