Announcement: Why not try our official idea generator for inspiration when making puzzles?


Caravel Forum : DROD Boards : Architecture : Scripting "Horizontal Movement Preference" (This one is very complicated)
New Topic New Poll Post Reply
Poster Message
Resert On
Level: Delver
Avatar
Rank Points: 30
Registered: 05-02-2017
IP: Logged
icon Scripting "Horizontal Movement Preference" (-1)  
Can someone make a script that let's that character:

1. Move to player (this can use 'Move to player' or use _MyScriptX and _MyScriptY)
2. Deadly (this can use 'Imperative Deadly' or use attack tile)
3. If the desired diagonal movement is blocked, the character prefer move horizontally (like Gentryii do).

____________________________
Don't take it seriously.
Click here to view the secret text


[Last edited by Resert On at 07-21-2017 03:11 PM]
07-21-2017 at 11:10 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Xindaris
Level: Smiter
Avatar
Rank Points: 487
Registered: 06-13-2015
IP: Logged
icon Re: Scripting "Horizontal Movement Preference" (0)  
???

Gentryii don't prefer to move horizontally. They act exactly like roaches, but have chains, which means they prefer to move vertically.

Anyway, I tried to do this a while back and I have to say...good luck.

____________________________
109th Skywatcher

Here are some links to Things!
Click here to view the secret text

07-21-2017 at 03:48 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Resert On
Level: Delver
Avatar
Rank Points: 30
Registered: 05-02-2017
IP: Logged
icon Re: Scripting "Horizontal Movement Preference" (-1)  
Hmm... more questions:

1)Is 'Face towards like guard' command takes a turn?
2)How to use 'Get entity direction' command and 'Get natural target' command? (these two command never i use because i didn't know how to use it -_-)


____________________________
Don't take it seriously.
Click here to view the secret text


[Last edited by Resert On at 07-22-2017 03:50 PM]
07-22-2017 at 03:50 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Xindaris
Level: Smiter
Avatar
Rank Points: 487
Registered: 06-13-2015
IP: Logged
icon Re: Scripting "Horizontal Movement Preference" (0)  
I haven't used it much myself, but you can very easily test whether 'face toward like guard' is a turn-ending command or not.

Get Natural Target: asks the entity what it would be trying to kill if it were a normal monster (like a roach). This means that it respects things like decoy proximity or "nearest timeclone" rules. It outputs to _ReturnX, _ReturnY the X and Y coordinates of the answer to that question.

Get Entity Direction: Feed it the location of an entity and it will return that entity's _O value (orientation, the direction it's currently facing). I think it sends that value to _ReturnX, if I'm not mistaken. The _O values are organized like this:
0 1 2
3 x 5
6 7 8
where 'x' is the location of the entity. 4 is "no direction".

____________________________
109th Skywatcher

Here are some links to Things!
Click here to view the secret text


[Last edited by Xindaris at 07-22-2017 04:31 PM]
07-22-2017 at 04:30 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 : Architecture : Scripting "Horizontal Movement Preference" (This one is very complicated)
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.