if (Got (item1A~component1A) and Got (item1B~component1B) and Got (item1C~component1C)) {
spell1.visible=true
}
if (Got (item2A~component2A) and Got (item2B~component2B) and Got (item2C~component2C)) {
spell2.visible=true
}
if (Got (item3A~component3A) and Got (item3B~component3B) and Got (item3C~component3C)) {
spell3.visible=true
}
// your fireball will target all monsters in the room that you currently can, doing 1 to X damage to each of them:
foreach (object_variable, ScopeReachableNotHeldForRoom ()) {
if (object_variable.type_of_object = "monster" and object_variable.current_life > 0) {
if (((fireball.power * player.intelligence / 100) - (object_variable.mentality / 100)) > 0) {
object_variable.current_life = object_variable.current_life - ((fireball.power * player.intelligence / 100) - (object_variable.mentality / 100))
} else {
object_variable.current_life = object_variable.current_life - 1
}
}
}
<object name="items room">
<inherit name="editor_room" />
<object name="apple">
<inherit name="editor_object" />
<eat type="script">
msg ("You scarf the delicious apple down in just a few bites! Yummy!")
MoveObject (apple, items room)
SetObjectFlagOff (lush green fruits, "taken")
</eat>
<talkto type="script"><![CDATA[
msg ("You speak meaningfully to the apple.<br/><br/>It responds... \"Thanks for taking the time to speak with me. No one does that much anymore these days. I would really like to be back with my apple family. Do you think you can appease me?\"<br/><br/>You think about it and decide that you would miss your family too. You nod affirmatively and the apple grins at you. \"Thank you again!\"<br/><br/>With that, the apple dissappears from your hand and vanishes into thin air.")
MoveObject (apple, items room)
SetObjectFlagOff (lush green fruits, "taken")
]]></talkto>
</object>
<object name="love potion">
<inherit name="editor_object" />
<inherit name="edible" />
<look>This unique potion screams magic. The heart shaped-vial is cycling through all the different primary colors. It smells a bit like love.</look>
<drink type="script">
msg ("You tip the amorous potion back and it slushes down your gullet. Immediately you feel warm and fuzzy all over and you search for the closest computer programmer to kiss.")
RemoveObject (love potion)
</drink>
<take />
<takemsg>Taken... Your heart is all a-flutter.</takemsg>
<attr name="feature_edible" type="boolean">false</attr>
<eat type="script">
msg ("You tip the amorous potion back and it slushes down your gullet. Immediately you feel warm and fuzzy all over and you search for the closest computer programmer to kiss.")
RemoveObject (love potion)
</eat>
<feature_usegive />
<use type="script">
msg ("You tip the amorous potion back and it slushes down your gullet. Immediately you feel warm and fuzzy all over and you search for the closest computer programmer to kiss.")
RemoveObject (love potion)
</use>
</object>
<object name="purple potion">
<inherit name="editor_object" />
<feature_usegive />
<selfuseon type="scriptdictionary">
<item key="green potion">
msg ("You pour the contents of the purple bottle into the green bottle. A poof of air erupts and the bottles disappear. You find in your hands a new heart-shaped vial that is pulsing all the primary colors.")
RemoveObject (purple potion)
RemoveObject (green potion)
AddToInventory (love potion)
</item>
</selfuseon>
<look>This vial is filled with a deep, rich purple liquid.</look>
<take />
<takemsg>Taken... You feel at peace.</takemsg>
<use type="script">
msg ("Closer... but, you still get a foreboding feeling.")
</use>
</object>
<object name="brown potion">
<inherit name="editor_object" />
<look>It's murky brown and quite thick. It reminds you of a post party evening surprise you mind find in the toilet. Smells like one too.</look>
<take />
<takemsg>Taken... you have the urge to do a two-sie.</takemsg>
<feature_usegive />
<selfuseon type="scriptdictionary">
<item key="blue potion">
msg ("You pour the contents of the brown bottle into the blue bottle. A poof of air erupts and the bottles disappear. You find in your hands a new heart-shaped vial that is pulsing all the primary colors.")
RemoveObject (brown potion)
RemoveObject (blue potion)
AddToInventory (love potion)
</item>
</selfuseon>
<use type="script">
msg ("Closer... but, you still get a foreboding feeling.")
</use>
</object>
<object name="yellow potion">
<inherit name="editor_object" />
<look>It's a vial of yellow potion that looks and smells a bit like cat pee.</look>
<feature_usegive />
<selfuseon type="scriptdictionary">
<item key="red potion">
msg ("You pour the contents of the yellow bottle into the red bottle. A poof of air erupts and the bottles disappear. You find in your hands a new heart-shaped vial that is pulsing all the primary colors.")
RemoveObject (red potion)
RemoveObject (yellow potion)
AddToInventory (love potion)
</item>
</selfuseon>
<take />
<takemsg>Taken... You have the urge to go potty.</takemsg>
<use type="script">
msg ("Closer... but, you still get a foreboding feeling.")
</use>
</object>
</object>
<object name="combining objects room">
<inherit name="editor_room" />
<object name="red potion">
<inherit name="editor_object" />
<look>This red potion is in an open vial. It smells of elderberries and is slightly thicker than water.</look>
<smell>It smells of elderberries... and your father.</smell>
<feature_usegive />
<selfuseon type="scriptdictionary">
<item key="blue potion">
msg ("You pour the contents of the red bottle into the blue bottle. A poof of air erupts and the bottles disappear. You find in your hands a new purple potion bottle.")
RemoveObject (blue potion)
RemoveObject (red potion)
AddToInventory (purple potion)
</item>
<item key="green potion">
msg ("You pour the contents of the red bottle into the blue bottle. A poof of air erupts and the bottles disappear. You find in your hands a new brown potion bottle.")
RemoveObject (green potion)
RemoveObject (red potion)
AddToInventory (brown potion)
</item>
<item key="yellow potion">
msg ("You pour the contents of the yellow bottle into the red bottle. A poof of air erupts and the bottles disappear. You find in your hands a new heart-shaped vial that is pulsing all the primary colors.")
RemoveObject (red potion)
RemoveObject (yellow potion)
AddToInventory (love potion)
</item>
</selfuseon>
<take />
<takemsg>Taken... Your mother was a hamster and...</takemsg>
<use type="script">
msg ("You do not want to do this yet. You have a bad feeling it will kill you.")
</use>
</object>
<object name="green potion">
<inherit name="editor_object" />
<look>This green potion is in an open vial and it smells of grass and is slightly less viscous than water.</look>
<smell>It smells like a freshly cut lawn.</smell>
<feature_usegive />
<selfuseon type="scriptdictionary">
<item key="blue potion">
msg ("You pour the contents of the red bottle into the blue bottle. A poof of air erupts and the bottles disappear. You find in your hands a new yellow potion bottle.")
RemoveObject (blue potion)
RemoveObject (green potion)
AddToInventory (yellow potion)
</item>
<item key="red potion">
msg ("You pour the contents of the red bottle into the blue bottle. A poof of air erupts and the bottles disappear. You find in your hands a new brown potion bottle.")
RemoveObject (green potion)
RemoveObject (red potion)
AddToInventory (brown potion)
</item>
<item key="purple potion">
msg ("You pour the contents of the purple bottle into the green bottle. A poof of air erupts and the bottles disappear. You find in your hands a new heart-shaped vial that is pulsing all the primary colors.")
RemoveObject (purple potion)
RemoveObject (green potion)
AddToInventory (love potion)
</item>
</selfuseon>
<take />
<takemsg>Taken... you get the urge to mow your lawn.</takemsg>
<use type="script">
msg ("You do not want to do this yet. You have a bad feeling it will kill you.")
</use>
</object>
<object name="blue potion">
<inherit name="editor_object" />
<look>This blue potion is in an open vial and the fluid inside is very light, somewhere between a liquid and a gas. It smells of lilac.</look>
<smell>It smells like a lilac bush.</smell>
<take />
<takemsg>Taken... You feel light as a feather.</takemsg>
<feature_usegive />
<selfuseon type="scriptdictionary">
<item key="red potion">
msg ("You pour the contents of the red bottle into the blue bottle. A poof of air erupts and the bottles disappear. You find in your hands a new purple potion bottle.")
RemoveObject (blue potion)
RemoveObject (red potion)
AddToInventory (purple potion)
</item>
<item key="green potion">
msg ("You pour the contents of the red bottle into the blue bottle. A poof of air erupts and the bottles disappear. You find in your hands a new yellow potion bottle.")
RemoveObject (blue potion)
RemoveObject (green potion)
AddToInventory (yellow potion)
</item>
<item key="brown potion">
msg ("You pour the contents of the brown bottle into the blue bottle. A poof of air erupts and the bottles disappear. You find in your hands a new heart-shaped vial that is pulsing all the primary colors.")
RemoveObject (brown potion)
RemoveObject (blue potion)
AddToInventory (love potion)
</item>
</selfuseon>
<use type="script">
msg ("You do not want to do this yet. You have a bad feeling it will kill you.")
</use>
</object>
<object name="Magoo">
<inherit name="editor_object" />
<inherit name="editor_player" />
<look>You're Magoo. A simple being trapped in a test game.</look>
<attr name="pov_look">You're Magoo. A simple being trapped in a test game.</attr>
</object>
</object>