genterprise 0 Posted May 14, 2016 Hello, I tried to write some scripts that show a "hint" message to the player that causes a character damage. Then store the value into a variable (global) that at te end of the match I have a pop up showing the Score - which is Equal to the amount of damage a player did. I made a trigger that fires at the start of the match which contains myscore = 0; myString = " "; then I have a second trigger that (condition) fires when (for this example) one of the 3 enemies (named tango1, tango2 and tango3 !alive tango01 || !alive tango02 || !alive tango03; but it seems to only fie off when I kill the first enemy, not on the other 2 then in the On Act. Box I have: myscore = myscore +200; myString = getText (myscore); hint "Kill +200"; hint myString; I am only seeing the Message "Kill+200" when I kill the first tango. I never get the Message showing the value of myString And no messages when I kill the other 2 enemy ai. Please help! Share this post Link to post Share on other sites
froggyluv 2133 Posted May 14, 2016 Make trigger repeatable as its gone after it satisfies first argument. That or make 3 triggers. Share this post Link to post Share on other sites
genterprise 0 Posted May 15, 2016 Thanks. The trigger is on repeat. Also, I know I can make 3 triggers... Was just wondering if I had to. But... - for instance - If I give a player 200 points for a kill - is there a way to show the value using the hint command? Share this post Link to post Share on other sites
R3vo 2654 Posted May 15, 2016 hint str yourScoreVariable; hint format ["Score: %1",yourScoreVariable]; 1 Share this post Link to post Share on other sites
genterprise 0 Posted May 15, 2016 Thank you all. What I found out was that my Initial Trigger which was suppose to set my global variable was never firing, once I fixed that all else worked fine! Thanks! Share this post Link to post Share on other sites