Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Enemy Stealing Items?

Author
Message
kms
15
Years of Service
User Offline
Joined: 9th Jan 2009
Location:
Posted: 26th Jan 2009 18:00
I was wondering if it was possible to make an enemy steal one of the player's items. In my game, the character will be attempting to collect certain artifacts (they won't add health, etc.), and I wanted some of the enemies to function as 'competitors' who steal items from the player's inventory.

Is this possible? Details would be appreciated, if it is. Also, if it isn't possible, are there any methods by which I could accomplish something similar? Thanks a lot!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 27th Jan 2009 03:09
If you have v109 or higher, then you can use a variable as a counter for the item.
As long as you have a script that can display that counter, then all you need to do is have the entities script decvar the variable.
You could use plrwithinzone=1 as a trigger if you want him to be a pickpocket.

Login to post a reply

Server time is: 2024-11-24 18:33:21
Your offset time is: 2024-11-24 18:33:21