if use inv item

Started by miguel, Wed 04/06/2003 01:18:17

Previous topic - Next topic

miguel

hello to all,
I need help on a basic thing that I couldn't find on the manual,

I need to use something like this:
if inventory item(x) is used on character(JOE)
display "blabla"
 else
     display "blablah"

do I use variables (I guess so) or is there a simpler way to do it?
  thanks
Working on a RON game!!!!!

Squinky

In the character area, there should be an interaction "Use inventory" or something, you select it and put your interactions in there...It looks like your scripting so make sure you put the inventory number you wish to use in the little box...

Scorpiorus

#2
Yeah, goto the character panel, choose JOE > interaction... > Use inventory on character: Run Script.

next the script:

if (character[GetPlayerCharacter()].activeinv == <inv number here>) Display ("1 Blah Blah");
else Display ("2 Blah Blah........");




EDIT:

Also you can place the next list of actions:
|
|==Use inventory on character
|...............Conditional - If inventory item was used (1)
|.......................Game - Display message (1)
|.......................Stop running more commands
|...............Game - Display a message (2)

-Cheers

miguel

thanks guys,
the problem was with the "stop running more comands" comand, because I didn't have it on and so (JOE) would say the two sentences one after the other.
 I guess I'll go with the scripting way as I want to develop more on scripting,
  thanks again for answering a obvious question
Working on a RON game!!!!!

SMF spam blocked by CleanTalk