I'm Making an RPG adventure game i need help with using inventory item with.....

Started by PrimitiveUser, Wed 26/11/2008 22:39:15

Previous topic - Next topic

PrimitiveUser

First of all thanks for actually helpin me out.
When the player get the item, then click the item then uses it on hotspot in the game looseinventoryitem then gets another item different
for ex: Use the log in my inventory on a firepit hotspot in the game and the log gets deleted and turns into fire log.
then i can use a firelog on the uncooked fish in the inventory so im bassically asking for 2 scripts.
Thank-You.

Akatosh

In your AGS directory, there should be a mystical artifact known as the "help file". Open it, and search for an ancient prophecy known as the "Tutorial" amongst the secret society of those who AGS. Follow the directions given there, and thou shalt achieve enlightment.

That said, welcome to the forums, and good luck with your game!  :)

Dualnames

Quote from: primitiveuser on Wed 26/11/2008 22:39:15
First of all thanks for actually helpin me out.
When the player get the item, then click the item then uses it on hotspot in the game looseinventoryitem then gets another item different
for ex: Use the log in my inventory on a firepit hotspot in the game and the log gets deleted and turns into fire log.
then i can use a firelog on the uncooked fish in the inventory so I'm bassically asking for 2 scripts.
Thank-You.

That really makes very little sense..if anyone can decipher it, please let me know.(message contains no sarcasm)
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Akatosh

I think it basically means he wants to make the player lose an inventory item and obtain another one in return, which is about as basic as it gets.

Dualnames

player.LoseInventoryItem=player.ActiveInventory;
player.AddInventoryItem(iitemwhateverthescriptnameis);
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

PrimitiveUser

Geesus christ, i sed tht when i click an item in my inventory for ex:  a  wood log and then i click it
and the close the inventory then use the item on a hotspot in the game and then the wood log gets deleted(i arledy kno the deleting code) and theen it replaces with a firelog (cuz the hotspot wus a tinderfirepit)

Akatosh

Do the tutorial. Inventory items and their usage are explained just fine there. Which is to say, RTFM.

PrimitiveUser

Quote from: Akatosh on Thu 27/11/2008 14:17:28
Do the tutorial. Inventory items and their usage are explained just fine there. Which is to say, RTFM.

That does not help me it does say inventory items on hotspots but does not tell me the code also says about crosshairs but im looking for the code can u tell me IT?

PrimitiveUser

Listen ill make it clear tell me where to pput the code and give me the code

Here it is:

If i was playing a game and in my inventory i take and item then it becomes the cursor.
then i use the item with a hotspot in the game thenthe item that u used is deleted and then replaces with
another item...

Akatosh

I suggest a clever combination of these:

player.AddInventory
player.LoseInventory

And maybe this:

player.ActiveInventory

It's basic stuff, really. Where to put it depends on which AGS version you're using, but that's something that should definitly be covered early in the tutorial.

Khris

Put a little more effort in the general form of your posts and people are going to be much more willing to help you (unless you're having some kind of condition, in this case, sorry).

Dualnames

We're all helpful guys, but you're making hardly any sense. Try and calm yourself and just type your problem.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Trent R

Tutorial on Hotspots. Just change 'Display("It's quite a large, ominous door.");' with
Quote from: Akatosha clever combination of these:

player.AddInventory
player.LoseInventory

And maybe this:

player.ActiveInventory

And when it mentions 'inventory item hotspots' in the manual, it's not talking about a room hotspot. It's talking about where you have to click when items as cursors in activated. (for a bad example, see where Vince talks about Flux World in WYGIB1

~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

SMF spam blocked by CleanTalk