Jump to content

Home

Start conversation on activation of item in inventory?


ltlukelt

Recommended Posts

I'm trying to initiate a conversation when an item in the players inventory is clicked. I have been able to setup a new spell in spells.2da so when the item is activated, the new spell is cast, which leads to a script being executed which is attached to the spell.

 

This mods idea is based on Darths mod here

 

I am trying to achieve the same effect as shown in the mod above and the only part I am stuck on is how to start a conversation once an item is activated?

 

Sorry if this sounds confusing!

 

 

Thanks.

Link to comment
Share on other sites

have a script to start a conversation

 

void main()
{
ActionStartConversation(GetFirstPC(),"dlg_filenamehere");
}

 

Im a bit confused as to your intentions. So the item casts a spell. Then the spell runs the script. If so I think that is all you need.

 

Just had a look in Spells.2da and the column

 

impactscript

 

needs to have the launch conversation script above.

 

Then in your armband .uti file in the properties tab, have an ActivateItem line that activates your line in Spells.2da

 

If you have any trouble just ask.

Link to comment
Share on other sites

Thanks, but I still can't get it to work. Ill explain it better:

 

I currently have an armband.uti file which is given to the PC at the start of the game through an edit of m01aa_c01.dlg. The armband properties looks like this:

 

txv.th.png

 

While the spells.2da look like this:

 

0v5l.th.png

 

Once the armband is activated as shown here:

 

01zf.th.jpg

 

the spell is supposed to run, which in turn has a script attached via impactscript. This script then starts a conversation with the PC. The problem is that the dialogue dosn't show up. When clicked the armband does nothing.

 

Any ideas?

Link to comment
Share on other sites

Sorry but could I have a better picture of the armband properties because in that one the tooltip is over it. Also I don't know how you are taking the pictures but just use the

Print Screen Button

as it may be a bit clearer.

 

Also I take it you compiled the script.

Link to comment
Share on other sites

I believe the Subtype is the name of the spell set in spells.2da. I will look into it however. Thanks for the suggestion :thmbup1:

 

I have just replaced the .dlg file in Darths mod with my own and it seems to be working. It looks like the problem is with one of the scripts or the spells.2da file.

 

It is now fully working after I used the spells.2da and activate script from Darths mod and renamed them accordingly. Thanks for all the help!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...