player possess item?

Started by deltree, Sun 16/11/2003 17:40:22

Previous topic - Next topic

deltree

is there a function to know wether the player has an object in is inventory or not?

Scummbuddy

check out global integers or global ints in the help file/ manual
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

scotch

#2
or just do

if(character[CHARID].inv[ x]) {DoSomething;} else {DoSomethingElse;}

where x is the number of the inventory item.

deltree


SMF spam blocked by CleanTalk