Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Deep Dark Fears on Mon 07/05/2018 21:06:34

Title: Display names using room_RepExec()
Post by: Deep Dark Fears on Mon 07/05/2018 21:06:34
As the title say, I want to display names using room_RepExec() but I need help. I have a bool global variable called IsDisplayNamesButtonPressed and a button for that. If the player clicks on button, then it set that variable to true value. And now I want to use room_RepExec() to check the value of variable. If variable is true, then the names are displayed on screen. My problem is, when I put this in room_RepExec() its not working but when I put this in GlobalScript then it works fine. Why?
Title: Re: Display names using room_RepExec()
Post by: Vincent on Mon 07/05/2018 21:31:28
Very quickly answer. Go to the events into the room and re-link the event rep_exe by pushing the button "..." like in this image!

(https://image.ibb.co/hmOBuS/Immagine.png) (https://imgbb.com/)

If that doesn't work then erase your function rep_exe of the room and re-link it once again.
Title: Re: Display names using room_RepExec()
Post by: Deep Dark Fears on Mon 07/05/2018 21:39:44
It works. Thank you very much.
Title: Re: Display names using room_RepExec()
Post by: Vincent on Mon 07/05/2018 21:42:37
Fantastic! ;)