• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Skipping a cinematic tutorial?

Status
Not open for further replies.
Level 7
Joined
Mar 9, 2016
Messages
226
I want to prevent players from ruining the cinematic for others by spamming the ESC key in my map.

I also want to add a command for players, "-skip" so when they type it the cinematic skips but only for them. I literally have no clue how to do this, help?
 
Level 7
Joined
Mar 9, 2016
Messages
226
Not exactly a pro so i don't really know how to do that with the comparisons and the following actions, thanks for providing the link though.
 
Level 11
Joined
Jun 2, 2004
Messages
849
One of the big upsides of GUI is all the possible actions are right there in a nice sorted list, so you can look them over and try to figure out which one does what you want. Which part is confusing you?

For the condition, I already mentioned it was going to be a string comparison, so you can click "New Condition" from the top bar and select "String Comparison" from the dropdown list. You're working with chat strings, so the "Entered chat string" option (which is the default) should jump out to you. You can click on it and browse the other options if you want, though it should be obvious that things like filenames or ability names are not relevant to what you want to do. There's the "Matching chat string" one, but trust me that it's not what you want (the editor's descriptions are far from perfect). So select "Entered chat string".

Next is the red "Value" side of the comparison; red means it needs to be filled with something. Click it, and notice at the bottom of the box is a spot to enter text. You're checking whether a player typed "-skip", so put "-skip" in this text box.

Viola, condition done.


GUI triggering in wc3 is a wonderful introduction to programming, imo, because there's no expectation for you to constantly be looking things up. Everything is right there; no more no less. There's even a search feature for actions.
 
Status
Not open for further replies.
Top