Does anyone know how to:
I have a status bar that shows Walk to *** or Look at *** and so on. I want to make text change color for the time between the moment of mouse click until player finishes walking or interactig or other things.
Some ideas?
I have absolutely no idea how your code looks like, but I'll try anyway:
Change the color to highlighted right before calling ProcessClick/RunInteraction (presumably in on_mouse_click).
Change the color back to normal in repeatedly_execute.
Since calls to RunInteraction are blocking, rep_ex won't run during that time, thus the bar will be highlighted right until rep_ex gets called again i.e. the player is back in control.
(At least that's how an LA-template I frequently use does it, and it works like a charm.)
Well, I did it other way.
if((player.Speaking == true) || (player.Moving == true) || (player.Animating == true))
{ labeltext.TextColor = 63488; }
else {labeltext.TextColor = 15;}
put in the repeatedly_execute_always section.
1. You don't need ==true, if (player.Moving || ... is enough.
2. What if there's a scene where the player's doing none of those things?
If you don't want advice, don't open a thread asking for it.
I post it, when i didnt know how to. After some sleep and study I menage to do it. I only wanted to give it to others.
Oh, and scens without moving, talking or animating are not needed for status line to change color.
Well, think of the player having a conversation. While the other char is talking, the player will neither move nor speak nor animate. So the verb line will light down, light up, light down, light up, duting the entire conversation.
gui and status line will disappear while a conversation :)