Aller au contenu

Photo

Couple of Questions


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

#1
Tanooki1432

Tanooki1432
  • Members
  • 5 messages
First of all, how do I stop random squares from getting baked out of existence whenever I bake an area? For example, I'm building this one area, and when I baked it, three squares are impassable. The entire square. All I have in them is like, a gate. Or even worse, nothing. Any insight?

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
Morbane

Morbane
  • Members
  • 1 883 messages
see this thread http://social.biowar...5/index/8011145

#2 is something that requires scripting finesse - google "tag based scripting nwscript"

#3
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages
There is an example of a tag based script for the on acquire event that updates the journal in my Silverwand Sample Campaign available in the vault.

Regards

#4
PJ156

PJ156
  • Members
  • 2 988 messages
Post a picture of the first one, perhaps we might be able to furnish an answer? Morbanes post may have your answer though.

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
Dann-J

Dann-J
  • Members
  • 3 161 messages

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
Morbane

Morbane
  • Members
  • 1 883 messages
A really easy to learn tag scripting system can be found inside of Lilac Soul's Script Generator
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
_Knightmare_

_Knightmare_
  • Members
  • 643 messages
Tag Based Scripting

#8
PJ156

PJ156
  • Members
  • 2 988 messages

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 Image IPB.

PJ

Modifié par PJ156, 03 août 2011 - 03:33 .


#9
Dann-J

Dann-J
  • Members
  • 3 161 messages

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 Image IPB.


True - but if you leave a way open to break the game, someone will eventually do so (and blame the module author for it). Image IPB

Modifié par DannJ, 03 août 2011 - 10:23 .


#10
PJ156

PJ156
  • Members
  • 2 988 messages

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 Image IPB.


True - but if you leave a way open to break the game, someone will eventually do so (and blame the module author for it). Image IPB


That is also true ...

PJ