Is "event" a reserved word in Renpy? [solved]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
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]

#1 Post by xavimat »

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?
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)

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Is "event" a reserved word in Renpy?

#2 Post by Ocelot »

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)
< < insert Rick Cook quote here > >

User avatar
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?

#3 Post by Remix »

Reserved Words in Ren'py ... no sign of 'event' there
Frameworks & Scriptlets:

User avatar
ISAWHIM
Veteran
Posts: 318
Joined: Sun Nov 06, 2016 5:34 pm
Contact:

Re: Is "event" a reserved word in Renpy?

#4 Post by ISAWHIM »

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...

User avatar
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?

#5 Post by xavimat »

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)

Post Reply

Who is online

Users browsing this forum: No registered users