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.
-
Ayutac
- Regular
- Posts: 150
- Joined: Thu Oct 18, 2012 2:23 pm
- Projects: Pokémon Dating Sim
- Organization: A Breeze Of Science
- Deviantart: Ubro
- Location: Mayence, Germany
-
Contact:
#1
Post
by Ayutac » Fri Sep 27, 2013 5:52 pm
Hello there! Here's a quick question:
what is the "pass" equivalent for "action"? I need it for an Imagebutton, because else no hovered effect will occur.
Both
Code: Select all
imagebutton:
idle sItemName3
hover sItemName4
action pass
hovered SetVariable('mouseOverItem', i)
and
Code: Select all
imagebutton:
idle sItemName3
hover sItemName4
action Pass
hovered SetVariable('mouseOverItem', i)
do not work.
Thanks in advance!
Last edited by
Ayutac on Fri Sep 27, 2013 7:54 pm, edited 1 time in total.
Up next: An original, open source, text-based Dating Sim. Stay tuned ;)
-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#2
Post
by PyTom » Fri Sep 27, 2013 6:22 pm
Try the empty list [ ]. If that doesn't work, use Return(None).
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
Ayutac
- Regular
- Posts: 150
- Joined: Thu Oct 18, 2012 2:23 pm
- Projects: Pokémon Dating Sim
- Organization: A Breeze Of Science
- Deviantart: Ubro
- Location: Mayence, Germany
-
Contact:
#3
Post
by Ayutac » Fri Sep 27, 2013 6:33 pm
empty list does not work. Return(None) exits the menu, what I don't want. Other suggestions? Or can't you "simply" enable hover and hovered even when no action is present? Because I guess nobody would use hover when the button should never be hovered over. (I know I would have to wait for the next release, but that would be better than not having the effect.)
Up next: An original, open source, text-based Dating Sim. Stay tuned ;)
-
Arowana
- Miko-Class Veteran
- Posts: 531
- Joined: Thu May 31, 2012 11:17 pm
- Completed: a2 ~a due~
- Projects: AXIOM.01, The Pirate Mermaid
- Organization: Variable X, Navigame
- Tumblr: navigame-media
- itch: navigame
-
Contact:
#4
Post
by Arowana » Fri Sep 27, 2013 7:48 pm
-
Ayutac
- Regular
- Posts: 150
- Joined: Thu Oct 18, 2012 2:23 pm
- Projects: Pokémon Dating Sim
- Organization: A Breeze Of Science
- Deviantart: Ubro
- Location: Mayence, Germany
-
Contact:
#5
Post
by Ayutac » Fri Sep 27, 2013 7:54 pm
I just tried to do a "pointless" action
Code: Select all
imagebutton:
idle sItemName3
hover sItemName4
action SetVariable('mouseOverItem', i)
hovered SetVariable('mouseOverItem', i)
But NullAction() works too and I like it better (because the other thing is really REALLY bad code), so I take this, thanks!
EDIT@Elmiwisa: [[]] is even better :D
Last edited by
Ayutac on Sat Sep 28, 2013 2:52 pm, edited 1 time in total.
Up next: An original, open source, text-based Dating Sim. Stay tuned ;)
-
Elmiwisa
- Veteran
- Posts: 476
- Joined: Sun Jul 21, 2013 8:08 am
-
Contact:
#6
Post
by Elmiwisa » Sat Sep 28, 2013 2:21 am
Eh, I got this problem before. Empty list don't work. Bafflingly, list that have empty list work.
So what I did is this:
It looks like Ren'Py just need something, anything in that list, for it to allow the button to be hovered. But putting random stuff in will produce error if someone try to click the button. Putting an empty list into that list don't cause any trouble.
Users browsing this forum: Google [Bot], _ticlock_