Ren’Py预留了所有不以数字和字母开头的文件名,以及所有以“00”开头的文件名。有个非常特殊的例外,Ren’Py内部使用以“00”和“_”开头的文件。
Ren’Py预留了所有以单下划线(_)开头的名称。不要以单下划线开头定义任何名称,因为有可能未来的某个Ren’Py版本就会将那个名称用作预留名,这会让你的游戏崩掉。
下面是一个Python所使用的预留名列表。复用这些名称可能会导致“令人抓狂/无法调试/拍坏键盘”的问题。
下面是一个Ren’Py所使用的预留名列表。尽管在某些情况下重定义这些名称也情有可原,不过我们还是要尽量避免,不然容易出现“令人抓狂/无法调试/拍坏键盘”的问题。
AddToSet()AlphaBlend()AlphaDissolve()AlphaMask()AnimatedValue()At()Attribute()AudioPositionValue()BarValueBorders()Call()Character()ColorComposeTransition()Composite()Condition()ConditionSwitch()Confirm()Crop()CropMove()DictInputValue()DictValue()DisableAllInputValues()Dissolve()DragDragGroupDynamicDisplayable()DynamicImage()EndReplay()Fade()FieldInputValue()FieldValue()FileAction()FileCurrentPage()FileCurrentScreenshot()FileDelete()FileJson()FileLoad()FileLoadable()FileNewest()FilePage()FilePageName()FilePageNameInputValue()FilePageNext()FilePagePrevious()FileSave()FileSaveName()FileScreenshot()FileSlotName()FileTakeScreenshot()FileTime()FileUsedSlots()Fixed()Flatten()FontGroup()Frame()Function()GalleryGamepadCalibrate()GamepadExists()GetTooltip()Grid()HBox()Help()Hide()HideInterface()If()Image()ImageDissolve()InputValueInvertSelected()Jump()Language()LayeredImage()LayeredImageProxy()MainMenu()MixerValue()MouseMove()MoveTransition()Movie()MultiPersistentMultipleTransition()MusicRoomNoRollbackNotify()Null()NullAction()OpenURL()ParameterizedText()Pause()PauseAudio()Pixellate()Placeholder()Play()PlayCharacterVoice()Preference()PushMove()Queue()QueueEvent()QuickLoad()QuickSave()Quit()RemoveFromSet()Replay()RestartStatement()RollForward()Rollback()RollbackToIdentifier()ScreenVariableInputValue()ScreenVariableValue()Screenshot()Scroll()SelectedIf()SensitiveIf()SetCharacterVolume()SetDict()SetField()SetMixer()SetMute()SetScreenVariable()SetVariable()SetVoiceMute()Show()ShowMenu()ShowTransient()ShowingSwitch()SideImage()Skip()SnowBlossom()Solid()SpriteSpriteManagerStart()StaticValue()Stop()StyleStylePreference()Text()Tile()ToggleDict()ToggleField()ToggleMute()ToggleScreen()ToggleScreenVariable()ToggleSetMembership()ToggleVariable()ToggleVoiceMute()TooltipTransformVBox()VariableInputValue()VariableValue()VoiceReplay()With()XScrollValue()YScrollValue()advblindscenterdissolveeasefadehpunchirisinleftmain_menumenumouse_visiblemovemoveinrightmoveoutrightname_onlynarratornvl_clear()nvl_hide()nvl_menu()nvl_show()offscreenleftoffscreenrightpixellatepushrightresetrightsave_namesayslideawayleftslideleftsquarestoplefttoprighttruecentervoice()voice_can_replay()voice_replay()voice_sustain()vpunchwipeleftzoominzoominoutzoomout