Page 1 of 1

[Solved] Use Double Action Effect on Button

Posted: Wed Mar 21, 2018 12:18 am
by Karas
Hello, I'm really newbie on Ren'Py and a bit new with Phyton, my background is with C+, so there are some things that I can figure out by my self and with the tutorials, but with others I need some help please.

My doubt is if it is possible to use 2 action effects like the follows:

Code: Select all

        
        imagebutton:
            idle "universidad idle"
            hover "universidad hover"
            unhovered "universidad idle"
            action Notify(_("You selected Hobbies."))
            action Jump("university") alt "University"   


I want the button execute 2 effects when clicked 1 notify what was the action chosen and also jump to a Label, but when I do this the script doesn't compile and gives the report "keyword argument 'uaction' appears more than once in a imagebutton statement.

Is there some way or a correct way in where I can do that?

Thanks in advance.

Re: USe Double Aciion Effect on a Button

Posted: Wed Mar 21, 2018 12:43 am
by Milkymalk
You can provide actions as a list: action [ action1, action2, ... ]

Re: USe Double Aciion Effect on a Button

Posted: Wed Mar 21, 2018 12:52 am
by Imperf3kt
You don't need the brackets, just use a comma between each action

action Notify('message'), jump 'where_to'

Re: USe Double Aciion Effect on a Button

Posted: Wed Mar 21, 2018 1:11 am
by Karas
Thanks! it works flawless!

[Solved]