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: 1437
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

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

#1 Post by xavimat » Thu Apr 12, 2018 12:21 pm

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!
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
Ocelot
Miko-Class Veteran
Posts: 849
Joined: Tue Aug 23, 2016 10:35 am
Skype: miinipaa
Contact:

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

#2 Post by Ocelot » Thu Apr 12, 2018 12:42 pm

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: 1354
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 » Thu Apr 12, 2018 4:41 pm

Reserved Words in Ren'py ... no sign of 'event' there
Mad Scientist Todo List:
  • Finish Improved Event Handler
  • Implement DragonBones animation as a Creator Defined Container
  • Develop Cartoon Speech Bubble dialogue
  • Finish Bitmask collision and rebound vector system
  • Develop time based building mechanic
  • Others
  • *Find a superb artist and actually write a game*

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

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

#4 Post by ISAWHIM » Sat Apr 14, 2018 7:27 pm

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: 1437
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: xavimat
Location: Italy
Contact:

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

#5 Post by xavimat » Sun Apr 15, 2018 9:59 am

Thanks to you all. Solved.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Cops&Robbers A two-player experiment
Fear&Love Why can’t we simply express our feelings? Why am I afraid to say ‘I love you’?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: Google [Bot]