Aller au contenu

Photo

Dumb question - how to give an item?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Rodro Lliv

Rodro Lliv
  • Members
  • 185 messages
I feel stupid. Sorry if the answer is obvious, but I still haven't found the answer to this. How can you make a character give an item to the PC at the end of a conversation? The item is a new one I've created.

#2
Qutayba

Qutayba
  • Members
  • 1 295 messages
I'm still a newb with scripting in DA. But in the Neverwinter toolset, you'd give an item by attaching a script to a node in your conversation tree. It looks like it works similar in the DA toolset. On the line where your NPC says, "Here's your item," you call a script that contains the UT_AddItemToInventory function, which will create an instance of your item in the PC's inventory. You should probably poke around the scripting tutorials on the wiki to get the framework and scripting "grammar" right - people are still experimenting, so the tutorials are bare bones, but they are a useful a first step. This link is probably where you should start:



http://social.biowar..._player_an_item

#3
Rodro Lliv

Rodro Lliv
  • Members
  • 185 messages
Many thanks, I managed to create the appropriate script with that info.



I completely forgot about the Demo tutorial, I'll keep it in mind for future references.