Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : Special Command 2 (The sequel to Special Command)
New Topic New Poll Post Reply
Poster Message
hyperme
Level: Smitemaster
Avatar
Rank Points: 1062
Registered: 06-23-2006
IP: Logged
icon Special Command 2 (+2)  
I feel like this is fairly self-explanatory. A second special command, that can used in scripting. It's difficult to explain why it would be useful, but an obvious use is to select something for the first special command to do.

____________________________
[Insert witty comment here]
Qzvlkx?

[Last edited by hyperme at 03-02-2023 05:16 PM]
03-02-2023 at 11:18 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Kaelyn
Level: Delver
Rank Points: 76
Registered: 01-21-2019
IP: Logged
icon Re: Speical Command 2 (+1)  
More broadly, we could include a new script command "Wait for button press" which has a single argument for the keypress in question. It'll have to update itself with the player's keybindings, and it should be work with _MyScriptX to inject whatever context-dependent keypress the architect wants, but this system would give us a whole slew of new special commands in one neat package.
03-02-2023 at 05:07 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1062
Registered: 06-23-2006
IP: Logged
icon Re: Special Command 2 (+2)  
The game engine can't detect arbitary keyboard inputs, so a script command to do such a thing isn't workable. Part of the UI's job is to convert player inputs into game commands, which scripts can see. The only way to support new inputs is to add new commands. There's no way around this because demos also supply commands to the game engine, without pressing any input keys.

Indeed, "update itself with the player's keybindings" also doesn't work because only the UI layer has access to the keybindings.

____________________________
[Insert witty comment here]
Qzvlkx?
03-02-2023 at 05:31 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5056
Registered: 02-04-2003
IP: Logged
icon Re: Special Command 2 (0)  
PR (thanks, hyperme!)

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
05-18-2023 at 04:25 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
averagemoe
Level: Smiter
Avatar
Rank Points: 487
Registered: 03-22-2012
IP: Logged
icon Re: Special Command 2 (0)  
Hold on, I think this might actually have the potential to break something.

What if someone made a script to detect if the player is moving or not by checking whether they inputted wait or special command? You know, to make something like the challenge in KDD Twelfth Level 1S2E. This would enable players to cheese that by using one of the two new special commands.

Personally, I think just the one special command is plenty.

____________________________
There are two types of sheep in the world. Those who jump off a bridge when told to, and those who jump off a bridge when told not to. Don't be either.
03-29-2024 at 03:56 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1062
Registered: 06-23-2006
IP: Logged
icon Re: Special Command 2 (0)  
Does that challenge actually work that way?

edit: Even if it does it's possible to mess with the wiring so that all current commands looking for special command see any of them being used. Anything is possible with the power of Software Engineering.

edit2: That challenge doesn't work that way - it checks to see if you've input one of the four allowed commands, and if you didn't, you fail. Although I suppose other challenges need to be checked.

____________________________
[Insert witty comment here]
Qzvlkx?

[Last edited by hyperme at 03-30-2024 10:44 AM]
03-29-2024 at 12:36 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : Special Command 2 (The sequel to Special Command)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.