ceb08755-71c8-4656-b83f-e2003aebc0b9 1.1 2016 0 10 if (this.full = 0) { msg ("The waterskin is empty.") } else if (this.full = this.capacity) { msg ("The waterskin is full of " + this.liquidtype + ".") } else { msg ("The waterskin is about " + (waterskin.full * 10) + "% full of " + this.liquidtype + ".") } There is a pool of water. water if (this.emptiedliquidtype = "water") { msg ("You empty the water into the pool.") } else if (this.emptiedliquidtype = "poison") { msg ("You empty the contaminated water into the pool.") this.liquidtype = "poison" } else if (this.emptiedliquidtype = "oil") { msg ("You empty the oil into the pool; it floats on top.") } else { msg ("You empty it.") } false {if room_with_fire.fireout:The fire is out}{if not room_with_fire.fireout:There is a fire burning}. if (this.emptiedliquidtype = "water") { msg ("You empty it over the fire, which sizzles and spits, then dies.") this.fireout = true } else if (this.emptiedliquidtype = "poison") { msg ("You empty it over the fire, and suddenly you are engulkfed in toxic fumes! When the fumes clear, you see that the fire is out.") this.fireout = true } else if (this.emptiedliquidtype = "oil") { msg ("You empty it over the fire, which flares up, singing your eyebroews.") } else { msg ("You empty it over the fire, but nothing much happens.") } water You turn on the tap, Water flows into the sink and down the plug hole. You turn it off. Water is flowing from it. this.parent.watersource = true this.parent.watersource = false poison oil if (liquidtype = "poison" or container.liquidtype = "poison") { msg ("You top it up with poison.") container.liquidtype = "poison" } else if (liquidtype = "water" or container.liquidtype = "water") { msg ("You top it up with water.") container.liquidtype = "water" } else { msg ("You empty it, and then fill it with " + liquidtype + ".") container.liquidtype = liquidtype } if (liquidtype = "poison") { msg ("It is poison! You fall over, dead.") finish } else { msg ("You take a drink from it.") } fill waterskin empty waterskin drink from waterskin south fill waterskin drink from waterskin empty waterskin empty waterskin fill waterskin south empty waterskin north fill waterskin south fill waterskin drink from waterskin fill waterskin look at waterskin north empty waterskin look at waterskin south east fill waterskin north empty waterskin west fill waterskin east empty waterskin west fill waterskin drink from waterskin