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 : _input variable
New Topic New Poll Post Reply
Poster Message
averagemoe
Level: Smiter
Avatar
Rank Points: 487
Registered: 03-22-2012
IP: Logged
icon _input variable (+1)  
I was looking through one of the scripts I made for my various mad tinkerings, and saw a whole series of elseif statements covering almost the full list of "wait for player to input", because I needed to know what direction they're trying to move when bumping an obstacle.

It would be much easier if there was a read-only variable that says what input the player is inputting on that turn.

____________________________
The internet is no place to act like a wild animal.
06-07-2024 at 06:01 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
averagemoe
Level: Smiter
Avatar
Rank Points: 487
Registered: 03-22-2012
IP: Logged
icon Re: _input variable (+1)  
Would it motivate you if I found a somewhat efficient solution that would be rendered obsolete?
Set var "_MyScriptX" = 1
Label findinput
        If ... 
              Wait for player to input North
        Else If 
              Wait until var "_MyScriptX" = 8
           Set var "_MyScriptX" = 0
        Else 
           Set var "_MyScriptX" + 1
           Go to findinput
        If End 

It's specifically tailored to what I was using it for, but the principle could apply to a broader range.

____________________________
The internet is no place to act like a wild animal.
06-12-2024 at 07:14 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1142
Registered: 06-23-2006
IP: Logged
icon Re: _input variable (+1)  
I would be more interested to know what you are doing with that value once you've found it.

____________________________
[Insert witty comment here]
Qzvlkx?
06-12-2024 at 07:54 PM
View Profile Send Private Message 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: _input variable (+1)  
It's part of a script that allows the player to walk on top of closed doors like in RPG.

____________________________
The internet is no place to act like a wild animal.
06-12-2024 at 10:29 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
averagemoe
Level: Smiter
Avatar
Rank Points: 487
Registered: 03-22-2012
IP: Logged
icon Re: _input variable (0)  
This hasn't even been implemented yet, and I've already figured out a trick. After establishing that the player isn't waiting or using a special command, then with a simple _input%11, you can correct for the discrepancy between the two different versions of the value for Northwest.

____________________________
The internet is no place to act like a wild animal.
06-15-2024 at 09:54 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1142
Registered: 06-23-2006
IP: Logged
icon Re: _input variable (+1)  
In the interests of reducing the amount of maths needed it might be worth also having an _InputDirection variable which returns the direction the player wanted to move, with non-moves returning the no orientation value.

____________________________
[Insert witty comment here]
Qzvlkx?
06-17-2024 at 03:49 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 : _input variable
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.