ERROR putting object in locker.

GAGE HOLSTON
12 Dec 2017, 04:39

In the game, you can put objects in a locker, it's in fact required at one point.
Problem, is sometimes you get the following error.

Error running script: Error evaluating expression 'DynamicTemplate("ObjectCannotBeStored", object1)': No template named 'ObjectCannotBeStored'

This error was caused by attempting to put an item in the locker that you can't drop. The game has some items you can't drop because of how important they are.

Is there anyway to get around this, so that error doesn't pop up. If possible, I'd like to somehow make it so you can't put undroppable items in the locker. If that's not possible, then I'd just like a method to stop the error.


K.V.
12 Dec 2017, 06:53

Hello.

I believe Quest is missing that Dynamic Template.

You can add this line in full Code View, JUST BEFORE the line that declares your game's name:

  <dynamictemplate name="ObjectCannotBeStored">"You can't put " + GetDisplayName(object) + " in there."</dynamictemplate>

The next line should look like this:

<game name="YOUR GAME'S NAME WILL BE HERE">

OR you can add a Dynamic Template via GUI:

image


image