- View New Content
-
Getting Started
-
Tutorials
Tutorial Categories
Tutorials Main Page Installation and Setup Downloadable TutorialsROM Adjustments
Number of Balls Adjustments Volume Adjustments
-
Visual Pinball Tables
VP 8 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP 9 Desktop Tables
All VPM Recreations VP Recreations VP/VPM MODs VP Originals ROMsVP9 Cabinet Tables
All Full Screen Cabinet Full Screen B2S Cabinet Spanned Cabinet Tables Media Packs ROMsVPX Tables
All VPinMAME Recreations VPX- - /VPinMAME - MOD Tables VPX Recreations VPX Originals Media Packs ROMs VR
-
Frontend Media & Backglass
Media Packs
Complete Media Packs Wheel Logos VideosBackglasses
dB2S Animated Backglasses UVP Animated Backglasses Topper Images
- Future Pinball Tables
-
Design Resources
Main Resources
Table Templates Playfield Images Image Library Sound Library Key CodesVP Guides
VP8 Guide - English VP8 Guide - Deutsch VP9 Guide - English VP9.1.x Guide - English VP Object Guide VPM DocumentationFuture Pinball Resources
Playfield Images 3D Model LibraryFuture Pinball Guides
FP Script Guide Big Draco Script Guide FP Table Design Guide FP DMD Guide
- Other Features
- Bug Tracker
- Image Gallery
- Blogs
- More
Drop target Script help please.
Started By
Episode
, Nov 13 2010 11:18 PM
6 replies to this topic
#1
Posted 13 November 2010 - 11:18 PM
I have looked over quite a few tables and have serched the forum and cannot seem to understand the subject matter.
Can anyone please give me an example of 1 drop target wall scripted for basic understand lets call it "wall1".
This is in its own catagory aswell i think? it seems people put a ton of walls in an array or something? I am not quite understanding.
Or a beginner tut on basic scrpting would be helpfull, maybe i just cannot seem to find the right thread? Thanks for any and all help.
Can anyone please give me an example of 1 drop target wall scripted for basic understand lets call it "wall1".
This is in its own catagory aswell i think? it seems people put a ton of walls in an array or something? I am not quite understanding.
Or a beginner tut on basic scrpting would be helpfull, maybe i just cannot seem to find the right thread? Thanks for any and all help.
"For he today that sheds his blood with me shall be my brother" -William Shakespeare
CAL: CQC-Recon-Intel
My needing help post.
CAL: CQC-Recon-Intel
My needing help post.
#2
Posted 13 November 2010 - 11:35 PM
QUOTE (Episode @ Nov 14 2010, 12:18 AM) <{POST_SNAPBACK}>
I have looked over quite a few tables and have serched the forum and cannot seem to understand the subject matter.
Can anyone please give me an example of 1 drop target wall scripted for basic understand lets call it "wall1".
This is in its own catagory aswell i think? it seems people put a ton of walls in an array or something? I am not quite understanding.
Or a beginner tut on basic scrpting would be helpfull, maybe i just cannot seem to find the right thread? Thanks for any and all help.
Can anyone please give me an example of 1 drop target wall scripted for basic understand lets call it "wall1".
This is in its own catagory aswell i think? it seems people put a ton of walls in an array or something? I am not quite understanding.
Or a beginner tut on basic scrpting would be helpfull, maybe i just cannot seem to find the right thread? Thanks for any and all help.
when i'm back at home i could give you exact scripts, but for now, have a look at either a table from the originals section or one of the table templates available under design resources
"it will all be ok in the end, if it's not ok, it's not the end"
Monster Bash VP10 WIP https://dl.dropboxus... (vpx)WIP15.vpx
#3
Posted 14 November 2010 - 12:27 AM
Here's a table. it has nothing but 3 targets on it, you knock them down and then it will set them up with a small delay to look more realistic.
Things to remember about a drop target, you must have "Can Drop" and "Collidable" checked in property options.
Things to remember about a drop target, you must have "Can Drop" and "Collidable" checked in property options.
Attached Files
Edited by Bob5453, 14 November 2010 - 12:31 AM.
You have discovered an Easter egg. Pat yourself on the back.
#4
Posted 14 November 2010 - 12:38 AM
QUOTE (Episode @ Nov 13 2010, 05:18 PM) <{POST_SNAPBACK}>
I have looked over quite a few tables and have serched the forum and cannot seem to understand the subject matter.
Can anyone please give me an example of 1 drop target wall scripted for basic understand lets call it "wall1".
This is in its own catagory aswell i think? it seems people put a ton of walls in an array or something? I am not quite understanding.
Or a beginner tut on basic scrpting would be helpfull, maybe i just cannot seem to find the right thread? Thanks for any and all help.
Can anyone please give me an example of 1 drop target wall scripted for basic understand lets call it "wall1".
This is in its own catagory aswell i think? it seems people put a ton of walls in an array or something? I am not quite understanding.
Or a beginner tut on basic scrpting would be helpfull, maybe i just cannot seem to find the right thread? Thanks for any and all help.
Thi is out of my script page but it should help. Just make sure you make the target names match the script names!!
' Drop Targets----------------------
Sub LeftDropTarget1_Hit()
PlaySound""
AddScore ()
LeftDropTarget1.IsDropped = True
Check_Targets1 'Each time a target is hit check to see if they need to reset. (Calls the sub below).
End Sub
Sub LeftDropTarget2_Hit()
PlaySound""
AddScore ()
LeftDropTarget2.IsDropped = True
Check_Targets1
End Sub
Sub LeftDropTarget3_Hit()
PlaySound""
AddScore ()
LeftDropTarget3.IsDropped = True
Check_Targets1
End Sub
Sub LeftDropTarget4_Hit()
PlaySound""
AddScore ()
LeftDropTarget4.IsDropped = True
Check_Targets1
End Sub
Sub LeftDropTarget5_Hit()
PlaySound""
AddScore ()
LeftDropTarget5.IsDropped = True
Check_Targets1
End Sub
Sub LeftDropTarget6_Hit()
PlaySound""
AddScore ()
LeftDropTarget6.IsDropped = True
Check_Targets1
End Sub
Sub Check_Targets1() 'this is this drop targets subroutine for the timer (so they know when or if to reset)
LeftDropTarget1.TimerInterval=3000 ' set timer to expire in 3 seconds. Targets will reset in 3 seconds if all hit.
If LeftDropTarget1.IsDropped = true And LeftDropTarget2.IsDropped = true and LeftDropTarget3.IsDropped = true and LeftDropTarget4.IsDropped = true and LeftDropTarget5.IsDropped = true and LeftDropTarget6.IsDropped = true THEN LeftDropTarget1.TimerEnabled = True 'Then LeftLaneDrop1.TimerEnabled = True
' the line above tells the timer that IF they all are dropped then the timer should go on for them to come back up
End Sub
'Note: Can Drop unchecked will produce a null error!
Edited by Itchigo, 14 November 2010 - 12:40 AM.
#5
Posted 14 November 2010 - 11:01 AM
Hi Episode,
there are several ways of trying to learn what you need to know...the main problem (for me at least) in trying to help you is knowing where you're starting from.
I introduced VP into a school a couple of years ago, and wrote a few things that helped a lot of kids from zero understanding to be able to make their own tables - (this was written all for VP8).
You may find that what you're really interested in from that is the "scripting" section I did from the second part of the tutorial - can be found here: Wizards_Hat's VP tutorial part2 (powerpoint)
(The whole thing is here - Wizards Hat's VP introduction section)
Alternatively, I (& others) have also written several simple tutorial tables with heavily commented script - I tend to try & make tutorial tables very short & very specific to a particular want...so for example if you want to learn how to use drop targets in simple collections (arrays) have a look here - Collections tutorial table (using drop targets)
The rest of the tutorials on this site are here - Tutorials Section
Further, you may be interested to look the guide for the editor I recently completed - VP9.08 Guide.
If after all this you still need help, by all means ask again
Hope this helps.
Regards,
Dan.
there are several ways of trying to learn what you need to know...the main problem (for me at least) in trying to help you is knowing where you're starting from.
I introduced VP into a school a couple of years ago, and wrote a few things that helped a lot of kids from zero understanding to be able to make their own tables - (this was written all for VP8).
You may find that what you're really interested in from that is the "scripting" section I did from the second part of the tutorial - can be found here: Wizards_Hat's VP tutorial part2 (powerpoint)
(The whole thing is here - Wizards Hat's VP introduction section)
Alternatively, I (& others) have also written several simple tutorial tables with heavily commented script - I tend to try & make tutorial tables very short & very specific to a particular want...so for example if you want to learn how to use drop targets in simple collections (arrays) have a look here - Collections tutorial table (using drop targets)
The rest of the tutorials on this site are here - Tutorials Section
Further, you may be interested to look the guide for the editor I recently completed - VP9.08 Guide.
If after all this you still need help, by all means ask again
Hope this helps.
Regards,
Dan.
A wizard only needs one ball...but can handle six.
#6
Posted 15 November 2010 - 05:54 PM
Wow, thanks alot guys this is perfect. Exactly what i needed.
"For he today that sheds his blood with me shall be my brother" -William Shakespeare
CAL: CQC-Recon-Intel
My needing help post.
CAL: CQC-Recon-Intel
My needing help post.
#7
Posted 15 November 2010 - 08:11 PM
I have problems with this part of the script.
Dracula has one drop target only.
What I don't understand is the difference between dtDropTarget and dtLDropTarget.
I think it also requires a solenoid callback to work .
Dracula has one drop target only.
What I don't understand is the difference between dtDropTarget and dtLDropTarget.
I think it also requires a solenoid callback to work .
Please correct my English if it is necessary.
Any funny words or sentences you can teach me are welcome too !!!
This way I'll learn about pinball but English as well.
Any funny words or sentences you can teach me are welcome too !!!
This way I'll learn about pinball but English as well.