&SaveName Magic 8 BallGameMode Magic 8 BallDate3/25/2021 11:42:31 AMVersionNumberv13.0.5GameTypeObjectsGameComplexityPlayingTime01PlayerCounts01Tagsw0 Animations1Props2 Scripting3User Interfaces4Scripting: Automated5EnglishGravity?PlayArea?TableTable_CircularSky Sky_MuseumNotePick up and shake...RulesGridTypeLinesColor&rgbOpacity?ThickLinesSnappingOffsetBothSnappingxSize@ySize@PosOffset&xy?zLightingjLightIntensity G?LightColor&r?go_?b|?AmbientIntensity?AmbientTypeAmbientSkyColor&r?g?b?AmbientEquatorColor&r?g?b?AmbientGroundColor&r?g?b?ReflectionIntensity?LutIndexLutContribution?Hands*EnableDisableUnusedHidingComponentTagslabelsTurns`EnableTypeTurnOrderReverseSkipEmptyDisableInteractionsPassTurnsTabStatesN0mtitleRulesbodycolorGreyvisibleColor&r?g?b?id1ntitleWhitebodycolorWhitevisibleColor&r?g?b?id2ntitleBrownbodycolorBrownvisibleColor&rZ?gh?b= ?id3jtitleRedbodycolorRedvisibleColor&r Zd?g?b@b?id4ptitleOrangebodycolorOrangevisibleColor&r@?g ?b`?id5ptitleYellowbodycolorYellowvisibleColor&r?gj?b?id6ntitleGreenbodycolorGreenvisibleColor&rt?gn?b ?id7ltitleBluebodycolorBluevisibleColor&r?5?g?b?id8ltitleTealbodycolorTealvisibleColor&r`?g?5?b@l?id9ptitlePurplebodycolorPurplevisibleColor&r@b?g?b?id 10ltitlePinkbodycolorPinkvisibleColor&rQ?g?b?id 11ntitleBlackbodycolorBlackvisibleColor&r?g?b?id DecalPalletLuaScriptA--[[ Lua code. See documentation: https://api.tabletopsimulator.com/ --]] --[[ The onLoad event is called after the game save finishes loading. --]] function onLoad() --[[ print('onLoad!') --]] end --[[ The onUpdate event is called once per frame. --]] function onUpdate() --[[ print('onUpdate loop!') --]] endLuaScriptStateXmlUIRObjectStates0GUIDf443d5Name HandTriggerTransformposXz.posY@Y @posZ .rotXrotY F@rotZscaleX@O'@scaleYXY"@scaleZ@@NicknameDescriptionGMNotesColorDiffuse1r Zd?g ?ba?aLayoutGroupSortIndexLockedGridSnapIgnoreFoWMeasureMovementDragSelectableAutoraiseStickyTooltipGridProjectionHideWhenFaceDownHandsFogColorRedLuaScriptLuaScriptStateXmlUI1GUID7a01edName HandTriggerTransformposXC.posY@Y @posZ@p5.@rotXrotY `@rotZscaleXO'@scaleYXY"@scaleZ@NicknameDescriptionGMNotesColorDiffuse1r?gj?b@?aLayoutGroupSortIndexLockedGridSnapIgnoreFoWMeasureMovementDragSelectableAutoraiseStickyTooltipGridProjectionHideWhenFaceDownHandsFogColorYellowLuaScriptLuaScriptStateXmlUI2GUIDd320f3Name HandTriggerTransformposX@5@posY@Y @posZ`|?rotXrotYp@rotZscaleXO'@scaleYXY"@scaleZ@NicknameDescriptionGMNotesColorDiffuse1r@b?g?b?aLayoutGroupSortIndexLockedGridSnapIgnoreFoWMeasureMovementDragSelectableAutoraiseStickyTooltipGridProjectionHideWhenFaceDownHandsFogColorPurpleLuaScriptLuaScriptStateXmlUI3GUID6cbcf5Name HandTriggerTransformposX ۠.@posYY @posZH.@rotXrotYl@rotZscaleXO'@scaleYXY"@scaleZ@NicknameDescriptionGMNotesColorDiffuse1r ?5?g?b?aLayoutGroupSortIndexLockedGridSnapIgnoreFoWMeasureMovementDragSelectableAutoraiseStickyTooltipGridProjectionHideWhenFaceDownHandsFogColorBlueLuaScriptLuaScriptStateXmlUI4GUID31cb47Name HandTriggerTransformposX>posYY @posZy5rotXrotYrotZscaleX@O'@scaleY XY"@scaleZ @NicknameDescriptionGMNotesColorDiffuse1r?g?b?aLayoutGroupSortIndexLockedGridSnapIgnoreFoWMeasureMovementDragSelectableAutoraiseStickyTooltipGridProjectionHideWhenFaceDownHandsFogColorWhiteLuaScriptLuaScriptStateXmlUI5GUID6e2b91Name HandTriggerTransformposXposYY @posZ K5@rotXrotYf@rotZscaleX@O'@scaleYXY"@scaleZ@NicknameDescriptionGMNotesColorDiffuse1rt?gn?b?aLayoutGroupSortIndexLockedGridSnapIgnoreFoWMeasureMovementDragSelectableAutoraiseStickyTooltipGridProjectionHideWhenFaceDownHandsFogColorGreenLuaScriptLuaScriptStateXmlUI6GUID9ee92cName HandTriggerTransformposX ۠.@posY@Y @posZ.rotXrotYs@rotZscaleX`O'@scaleYXY"@scaleZ@NicknameDescriptionGMNotesColorDiffuse1rQ?g`?b?aLayoutGroupSortIndexLockedGridSnapIgnoreFoWMeasureMovementDragSelectableAutoraiseStickyTooltipGridProjectionHideWhenFaceDownHandsFogColorPinkLuaScriptLuaScriptStateXmlUI7GUID583a73Name HandTriggerTransformposX 5posY@Y @posZʿrotXrotYV@rotZscaleX@O'@scaleYXY"@scaleZ@NicknameDescriptionGMNotesColorDiffuse1r ?g?b?aLayoutGroupSortIndexLockedGridSnapIgnoreFoWMeasureMovementDragSelectableAutoraiseStickyTooltipGridProjectionHideWhenFaceDownHandsFogColorOrangeLuaScriptLuaScriptStateXmlUI8 GUIDf8a7d4NameCustom_AssetbundleTransformposX >posY@ @posZ]>rotX ?rotYf@rotZ@Xs3scaleX?scaleY?scaleZ?NicknameDescriptionGMNotesColorDiffuse&r?g?b?LayoutGroupSortIndexLockedGridSnapIgnoreFoWMeasureMovementDragSelectableAutoraiseStickyTooltipGridProjectionHideWhenFaceDownHandsCustomAssetbundleAssetbundleURLfhttp://cloud-3.steamusercontent.com/ugc/1714156622369711646/9E3288BDCD710E7772DF7628EECF1DB6AA7977BA/AssetbundleSecondaryURLMaterialIndexTypeIndexLoopingEffectIndexLuaScriptfunction onload() wisdoms = { "DON'T\nCOUNT\nON IT", "MY\nREPLY\nIS NO", "MY\nSOURCES\nSAY NO", "OUTLOOK\nNOT SO GOOD", "VERY\nDOUBTFUL", "REPLY\nHAZY\nTRY AGAIN", "ASK\nAGAIN\nLATER", "BETTER\nNOT TELL\nYOU NOW", "CANNOT\nPREDICT NOW", "\n\nCONCENTRATE\nAND ASK AGAIN", "AS I\nSEE IT,\nYES", "MOST\nLIKELY", "OUTLOOK\nGOOD", "YES", "SIGNS\nPOINT\nTO YES", "IT IS\nCERTAIN", "IT IS\nDECIDEDLY SO", "WITHOUT\nA DOUBT", "YES\nDEFINITELY", "YOU MAY\nRELY ON IT" } vel = 0 pickedup = false shaken = false shakelimit = 3000 self.AssetBundle.playLoopingEffect(0) self.createButton({ label="DONT\nCOUNT\nON IT", click_function="nada", function_owner=self, position={0,-1.6,0}, height=0, width=0, font_size=60, font_color={1,1,1,1}, rotation={0,0,180}, color={0,0,0,1} }) end function update() if pickedup then local cvel = self.getVelocity() vel = vel + math.abs(cvel.x, cvel.y, cvel.z) if vel >= shakelimit then pickedup = false shaken = true self.AssetBundle.playLoopingEffect(2) self.flip() Wait.time(createMessage, 1) end end end function onPickUp() vel = 0 pickedup = false shaken = false self.AssetBundle.playLoopingEffect(1) pickedup = true end function onDrop() if pickedup then self.AssetBundle.playLoopingEffect(4) end end function createMessage() local rand = math.random(1,#wisdoms) self.editButton({index = 0, label = wisdoms[rand]}) self.AssetBundle.playLoopingEffect(5) endLuaScriptStateXmlUI