Couple of Questions
#1
Posté 02 août 2011 - 02:10
Also, how do I advance a quest/journal entry thing when the player picks up an item from either a dead enemy or like a treasure box or something?
Thanks in advance.
#2
Posté 02 août 2011 - 07:53
#2 is something that requires scripting finesse - google "tag based scripting nwscript"
#3
Posté 02 août 2011 - 09:01
Regards
#4
Posté 02 août 2011 - 09:13
For the second question the path to purity has been offered to you. However you might also consider having said item as the only thing in the inventory of the person or chest and put your update in the on inventory disturbed slot.
You might also do it from a conversation that tests for the item in the inventory of the player.
Hope that helps a little,
PJ
#5
Posté 02 août 2011 - 10:43
PJ156 wrote...
For the second question the path to purity has been offered to you. However you might also consider having said item as the only thing in the inventory of the person or chest and put your update in the on inventory disturbed slot.
That would also fire the script if you put something in the container, rather than taking the one item out of it.
If for some reason you had an aversion to tag-based scripts (perish the thought!), you could always create a 'fake' container that was usable but had no inventory, with an OnUsed script that both updates the journal and spawns the item in the player's inventory. Although if your inventory was full then the item might just drop to the ground...
I learned the basics of tag-based scripting from the toolset's help document. I believe there are also basic script templates in the toolset for things like this (not that I've ever had to use them).
Modifié par DannJ, 02 août 2011 - 10:44 .
#6
Posté 03 août 2011 - 08:44
http://nwvault.ign.c...r.Detail&id=625 Plus it is a great help for beginners to get their heads around scripting - it was a big part of my learning - oh yea
#7
Posté 03 août 2011 - 10:32
#8
Posté 03 août 2011 - 03:31
DannJ wrote...
That would also fire the script if you put something in the container, rather than taking the one item out of it.
There you are right, though I can't ever remember putting treasure into a chest before I took any out before
PJ
Modifié par PJ156, 03 août 2011 - 03:33 .
#9
Posté 03 août 2011 - 10:21
PJ156 wrote...
DannJ wrote...
That would also fire the script if you put something in the container, rather than taking the one item out of it.
There you are right, though I can't ever remember putting treasure into a chest before I took any out before.
True - but if you leave a way open to break the game, someone will eventually do so (and blame the module author for it).
Modifié par DannJ, 03 août 2011 - 10:23 .
#10
Posté 03 août 2011 - 11:43
DannJ wrote...
PJ156 wrote...
DannJ wrote...
That would also fire the script if you put something in the container, rather than taking the one item out of it.
There you are right, though I can't ever remember putting treasure into a chest before I took any out before.
True - but if you leave a way open to break the game, someone will eventually do so (and blame the module author for it).
That is also true ...
PJ





Retour en haut






