I want to use the words "event" and "events" in my code as variable names, but editra has colored them (Atom hasn't).
I haven't find them in https://renpy.org/doc/html/reserved.html but I'm not sure...
Are these words reserved or can I use them?
Is "event" a reserved word in Renpy? [solved]
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Is "event" a reserved word in Renpy? [solved]
Last edited by xavimat on Sun Apr 15, 2018 9:59 am, edited 1 time in total.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
- Ocelot
- Lemma-Class Veteran
- Posts: 2404
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Is "event" a reserved word in Renpy?
I believe those aren't reserved words. I used them before and nothing bad happened.
events is the name of a transform property, so this might be why it is highligted (similar to xpos, align, etc.: those are not reserved too, but are highlighted too)
events is the name of a transform property, so this might be why it is highligted (similar to xpos, align, etc.: those are not reserved too, but are highlighted too)
< < insert Rick Cook quote here > >
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Is "event" a reserved word in Renpy?
Reserved Words in Ren'py ... no sign of 'event' there
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
Re: Is "event" a reserved word in Renpy?
If it bothers you, so the words don't "blend away into code"...
Use, "myEvent", and "myEvents"... Never fails to be unique.
Or, "vEvent" and "vEvents"... v for Vendetta... Just kidding... It is normally for "value" or "variable", non-specific... as opposed to i for INT or s for STRING, f for FUNCTION, etc...
Use, "myEvent", and "myEvents"... Never fails to be unique.
Or, "vEvent" and "vEvents"... v for Vendetta... Just kidding... It is normally for "value" or "variable", non-specific... as opposed to i for INT or s for STRING, f for FUNCTION, etc...
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Re: Is "event" a reserved word in Renpy?
Thanks to you all. Solved.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Who is online
Users browsing this forum: Google [Bot], henne, Ocelot, snotwurm