Any Tutorials on adding to two Inventory items

Started by Candle, Tue 20/04/2004 16:29:46

Previous topic - Next topic

Candle

I like to learn how this is done add two Inventory items to make one .
I see it done a lot in the games but not sure how it is done .

Darth Mandarb

There's no real trick to it actually ...

What I do is this:
When itemA is used on/with itemB you remove both items (A and B) from Inventory and add itemC into inventory.

ItemC is just a whole new inventory item that you can't get/pickup anywhere in the game.  It's only attainable when A and B are combined.

Does that make sense?

Candle

Quote from: Darth Mandarb on Tue 20/04/2004 17:34:18
There's no real trick to it actually ...

What I do is this:
When itemA is used on/with itemB you remove both items (A and B) from Inventory and add itemC into inventory.

ItemC is just a whole new inventory item that you can't get/pickup anywhere in the game.  It's only attainable when A and B are combined.

Does that make sense?
So where would you do it at ? with the  inventroy item Interaction editor ? or in the room  ? I'm not sure where it is done at so many ways to do things..

Joe

strazer (i think thats right) helped me yesterday on a similar inventory problem.  you could add a script on 2nd inventory item..where if user uses first item on 2nd item, then run script.  script's idea should be something along the lines of remove item 1, remove item 2, add item 3 to inventory ( item 3 being the combo of last two items)




Candle

Sorry joe I have no idea what you just said . I don't know code at all .
If it can be done with the Interaction I could maybe do it if not all let it go till I know code better ..
Unless someone wants to do code for me ?

strazer

#5
Joe, run-script & dialog_request are used in dialogs only.

Okay, to combine 2 items the interaction editor way:

- Go to the "Inventory items" section of the editor
- Choose the first of the two inventory items you want to combine
- Click the "Interaction..." button

- Double-click on "Use inventory on this item"
- Choose "Conditional - If inventory item was used" from the list
- Click the "Change" button
- Enter the item number of the SECOND inventory item you want to combine
- "OK", OK"

- Double-click on "Do nothing"
- Choose "Player - Remove an item from the inventory"
- Click "Change" button
- Enter the number of the FIRST inventory item to combine
- "OK", "OK"

- Right-click on "Conditional - If inventory item was used"
- Choose "Add child action..." from the context menu
- Choose "Player - Remove an item from the inventory"
- Click "Change" button
- Enter the number of the SECOND inventory item to combine
- "OK", "OK"

- Right-click on "Conditional - If inventory item was used"
- Choose "Add child action..." from the context menu
- Choose "Player - Give the player an inventory item"
- Click "Change" button
- Enter the number of the combined (third) inventory item (see DM's post)
- "OK", "OK"

- "CLOSE"

The same procedure has to be repeated if you use the first on the second inventory item, so the combining works both ways. Why don't you try that yourself for practice?

Candle

Thank you all try that and I made a PDF out of this post so I have it .
I wont start a new post all just ask here . ok it show how to give player a score for getting a item but i don't see how to display that score ? or does anyone do that ?

strazer

Check the help file under "Other Features", "Editing the GUIs, "Interface text".

Candle

Thank you and I did get it to work .. nice tut you should write that up and have it someplace..

TerranRich

Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk