Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : Development : DRODscript Additions Videos (I made a things!)
New Topic New Poll Post Reply
Poster Message
hyperme
Level: Smiter
Avatar
Rank Points: 449
Registered: 06-23-2006
IP: Logged
icon DRODscript Additions Videos (+10)  
So after poking around with the DROD source code for a while, I produced results:



More things:

Click here to view the secret text


Opine below, I guess?

____________________________
[Insert witty comment here]
Qzvlkx?

[Last edited by hyperme at 05-15-2017 08:08 PM]
10-11-2016 at 09:49 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Insoluble
Level: Smitemaster
Avatar
Rank Points: 1108
Registered: 09-04-2014
IP: Logged
icon Re: Wait for Weapon Video (+2)  
Super Rad. What need to be done for this to make it into the next official update after 5.1? Also, hyperme, you are totally awesome for all the trouble you've gone through to figure out DROD code and make this thing script.

____________________________
Links to neat forum tools that I always have trouble finding:
Click here to view the secret text


[Last edited by Insoluble at 10-11-2016 09:52 PM]
10-11-2016 at 09:51 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
Xindaris
Level: Smiter
Avatar
Rank Points: 422
Registered: 06-13-2015
IP: Logged
icon Re: Wait for Weapon Video (0)  
Absolutely wonderful to see it can work, which brings some hope of it getting into an official release sometime down the line.

____________________________
109th Skywatcher

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

10-11-2016 at 10:32 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 1307
Registered: 07-11-2014
IP: Logged
icon Re: Wait for Weapon Video (0)  
:thumbsup Hell yeah, this is something that I know a number of people have wanted for a while. Top stuff!

____________________________
(07:23 PM) Pearls: Kieran is correct.
10-11-2016 at 10:36 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
superluminal
Level: Delver
Rank Points: 52
Registered: 05-26-2016
IP: Logged

File: Wait for Weapon.hold (1.6 KB)
Downloaded 3 times.
License: Public Domain
icon Re: Wait for Weapon Video (+2)  
I made a comment in the video saying how this feature was scriptable in-game. Big words don't mean anything until they're backed up, so I've attached my proof here.

As long as you're not using oremites, disarm tokens, or custom armed monsters, this script should emulate the Wait for Weapon command fairly well. Just have someone pass their weapon over the bridge tile to trigger the code. Have fun!

My method is way clunkier than one quick script command, so I'd rather hyperme's work become official than have anyone need to rely on my work for their projects. Scripting should always make things easier.

____________________________
spacelike

[Last edited by superluminal at 10-12-2016 02:08 AM]
10-12-2016 at 02:06 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
uncopy2002
Level: Smiter
Rank Points: 386
Registered: 07-28-2014
IP: Logged
icon Re: Wait for Weapon Video (+2)  
Edge case checks:

What if two or more weapons are overlapping in the same tile?

What happens if a weapon is on a tile briefly during a turn, and then moved away (say, you moved your sword to a tile and then a mimic disarms you/pushes you away)? Will it behave consistently according to movement order?

Oremite/Disarm tokens/Slayer hooks/other armed characters?
10-12-2016 at 02:34 PM
View Profile Send Private Message to User Show all user's posts High Scores Quote Reply
hyperme
Level: Smiter
Avatar
Rank Points: 449
Registered: 06-23-2006
IP: Logged
icon Re: Wait for Weapon Video (+2)  
quote:
uncopy2002 wrote:
Edge case checks:

What if two or more weapons are overlapping in the same tile?



Due to how weapons are checked for, this works as expected. All weapons on the tile can be 'seen'.

quote:

What happens if a weapon is on a tile briefly during a turn, and then moved away (say, you moved your sword to a tile and then a mimic disarms you/pushes you away)? Will it behave consistently according to movement order?



If you do weird stuff like this, it will depend upon the script's processing sequence number.

quote:

Oremite/Disarm tokens/Slayer hooks/other armed characters?


Slayer hooks are just swords. Other armed characters are monsters and thus covered. Disarmed characters don't have weapons, and these none-weapons are not detected.

____________________________
[Insert witty comment here]
Qzvlkx?
10-12-2016 at 05:15 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
uncopy2002
Level: Smiter
Rank Points: 386
Registered: 07-28-2014
IP: Logged
icon Re: Wait for Weapon Video (0)  
More edgy checks:

What if other stuff are on the tile during the check as well? For example:

Monster/entities: player sword on an killable entity due to disarm shenanigans; serpents and gentrii bodies; etc...

Room items: Everything from the first 3 tabs: Seeding beacons, tarstuff, bomb/keg, etc...

Other weird stuff: Golem/construct piles
10-12-2016 at 05:29 PM
View Profile Send Private Message to User Show all user's posts High Scores Quote Reply
hyperme
Level: Smiter
Avatar
Rank Points: 449
Registered: 06-23-2006
IP: Logged
icon Re: Wait for Weapon Video (0)  
quote:
uncopy2002 wrote:
More edgy checks:

What if other stuff are on the tile during the check as well? For example:

Monster/entities: player sword on an killable entity due to disarm shenanigans; serpents and gentrii bodies; etc...

Room items: Everything from the first 3 tabs: Seeding beacons, tarstuff, bomb/keg, etc...

Other weird stuff: Golem/construct piles


Literally none of this will have an effect, since the pre-existing functions I used to create the script command don't care about any of that.

____________________________
[Insert witty comment here]
Qzvlkx?
10-12-2016 at 05:31 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 2322
Registered: 12-28-2004
IP: Logged
icon Re: Wait for Weapon Video (+1)  
Yea, without seeing Hyperme's code I can attest to know how he did it (because I'd do it the same) and that it works on all cases the regular code supports. If at the moment of the if executing there is a weapon at the tile, it will detect it.

____________________________
I am a skelliopath.
10-16-2016 at 09:47 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
hyperme
Level: Smiter
Avatar
Rank Points: 449
Registered: 06-23-2006
IP: Logged
icon Re: DRODscript Additions Videos (+3)  
I made another thing, related to trapdoors: https://youtu.be/tSWF_g5YRKQ

____________________________
[Insert witty comment here]
Qzvlkx?
05-15-2017 at 08:08 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 : Caravel Boards : Development : DRODscript Additions Videos (I made a things!)
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.