1. Done.
2. I'm looking into it. I have to test this. Looking at code, "get water" should work. if the noun points to "STREAM", which water does. If it finds bottle in inventory it should turn it into water.
else if (noun.id[objX] == Constants.ITEMS.STREAM.getValue())
{
if (pyramidData.backPack.findObjectById(Constants.ITEMS.WATER.getValue()) != null)
{
addToHistory("YOUR BOTTLE IS ALREADY FULL.", true);
}
else if(pyramidData.backPack.findObjectById(Constants.ITEMS.BOTTLE.getValue()) != null)
{
pyramidData.backPack.addObjectToPack(rooms.data.objects[Constants.ITEMS.WATER.getValue()]);
pyramidData.backPack.removeObjectFromPack(rooms.data.objects[Constants.ITEMS.BOTTLE.getValue()]);
addToHistory("OK", true); return;
}
}When it comes to number 3. It is entirely based on a random number. Here is an excerpt from the TRS code.
16EA: 09 07 ; _u : [ 16EC: 07 03 ; "SubScriptXAbortIfPass",[ 16EE: 0A CC ; "AssertRandomIsGreaterThanX","204"], 16F0: 01 48 ; "MoveToRoomX","room_72"],
So, It does a random number from 0 - 255, and it has to be greater than 204.
4. I added "diamonds" for a noun.
5. I'm confused, you need the key to open the sarcophagus. you don't get the key. I do see probably what you mean. When you use the key by "open sarcophagus" it removes the key from your inventory and put it on the ground. I don't in the TRS version. I removed that action.
6.I will have to do more testing on this.