The other conditional I need to check is if the Player is actually looking at the ScriptArea (in this case; sign_key_1), since if they are not, on looking away, the message just reappears for a bit.
I can code an extra line or two to actually make it work, but I would like to see if its possible to do it on one line, since it probably makes my code just that little bit more efficient and would benefit me somewhat in the future.
Thanks!
Discord: Romulator#0001
(This post was last modified: 06-11-2015, 10:10 AM by Romulator.)
What editor do you use though? For example Notepad++ will highlight whatever it feels like depending on the markup language. It has no relation to actual in-game scripts.
The only markup I truly trust is Eclipse's, because it's entirely focused on Java and does it better than most other things I know of.
(06-10-2015, 03:53 PM)Kreekakon Wrote: Multiple IF conditions can be added with &&. Similarly, || would mean that the IF would run if ONE of the conditions was met.
Like say:
if(int1==2 && int2==5)
This IF would run if both int1 equaled 2 and int2 equaled 5.
And then:
if(int1==2 || int2==5)
This IF would run if any one of those two were true.
I knew I had seen this before somewhere on the wiki. But I couldn't find it. Thanks for the help Kreek. *throws you a reputation*
(06-10-2015, 10:01 PM)Mudbill Wrote: What editor do you use though? For example Notepad++ will highlight whatever it feels like depending on the markup language. It has no relation to actual in-game scripts.
The only markup I truly trust is Eclipse's, because it's entirely focused on Java and does it better than most other things I know of.
(06-11-2015, 10:09 AM)(拉赫兰) Romulator Wrote: I knew I had seen this before somewhere on the wiki. But I couldn't find it. Thanks for the help Kreek. *throws you a reputation*
Maybe here? Hm... I only now noticed I didn't put anything about logical operators in the "At a Glance" section.
(06-11-2015, 10:09 AM)(拉赫兰) Romulator Wrote: I knew I had seen this before somewhere on the wiki. But I couldn't find it. Thanks for the help Kreek. *throws you a reputation*
Maybe here? Hm... I only now noticed I didn't put anything about logical operators in the "At a Glance" section.