Fallout 2 Modding - Scripting 101
3 Ways to Write a Follow Script.
My first full length scripting video...complicated and long...but I hope the editing at least makes sense.
I'd love any feedback on how to better explain what's going on with the scripting process.
A couple of tips from the author of the Sfall Script Editor:
"Instead of the old assignment := you can use modern way =
There are some tricks to writing code, so writing the word
'var' press the Tab key and the word is replaced with 'variable'
the same thing with:
proc - Тab - procedure
if - Тab
elif - Тab
while/for - Тab
to avoid writing the keyword 'end' every time, press Enter after the keyword 'begin' - this will automatically insert the keyword end."
How to give the player control over any critter with this script:
https://youtu.be/Aku3VUL_yjI?t=158
The largest collection of scripting tutorials I've found to date:
https://falloutmods.fandom.com/wiki/Category:Fallout_2_tutorials_-_scripting
Backup link:
https://falloutmods.fandom.com/wiki/Fallout_2_tutorials
List of (original) Scripting Commands:
https://falloutmods.fandom.com/wiki/Fallout_1_and_Fallout_2_scripting_-_commands,_reference,_tutorials
"Miria Mod" scripting tutorial:
https://falloutmods.fandom.com/wiki/Building_a_Better_Miria_Mod
"for" loop examples:
1) FO1in2 mod - https://github.com/rotators/Fo1in2/blob/0fc7da4d5dedadd7838b24ec1a9f95afaa1f301c/Fallout2/Fallout1in2/Mapper/source/scripts/headers/command.h#L1036
2) sfall sample script - https://github.com/phobos2077/sfall/blob/master/artifacts/example_mods/ComputeDamage/gl_compute_damage.ssl#L102
"while" loop example:
1) FO1in2 mod - https://github.com/rotators/Fo1in2/blob/0fc7da4d5dedadd7838b24ec1a9f95afaa1f301c/Fallout2/Fallout1in2/Mapper/source/scripts/headers/fo1.h#L503
0:00 Intro
0:28 Sfall Script Editor
1:24 Dogmeat's script
2:10 Follow_Dude macro
3:14 Attach script to critter with mapper
4:35 Modify ddraw.ini to set new StartingMap
5:25 Go To Declaration...
8:25 #define Preprocessor Directive
9:35 How to Read the Intellisense Popup
10:00 Numbered Directions
11:05 Modulus
12:30 More Intellisense
13:20 self_object, dude_object
13:45 Follow_Dude macro overview
14:54 Macros(Yellow) vs Commands (Orange)
15:54 #include .h header files
16:20 Basic Follow Animation Script
17:15 Variable Declaration
17:55 Mapper Editor Introduction.pdf
18:15 reg_anim... commands
19:30 doWalking definition
20:25 **BUG** dude_object called incorrectly
21:15 Alternative Source Code versions
21:30 Object Pointers
22:20 How to fix dude_object called incorrectly
22:55 Variable Scope
23:50 procedure critter_p_proc (The Heartbeat)
25:10 party_member_follow_dude
26:00 How to Read Intellisense Errors
27:20 Simple Party Member Creation
29:40 Intermittent Sfall Scripter bug
30:30 LVAR Local Variables
33:00 **BUG** Expecting ';' error
33:50 party_add_self
35:10 Call one Procedure from Another
38:30 **BUG** Refactoring code
40:25 Closing Comments
41:52 Outro
Other Videos By Quantum Apprentice
2021-10-25 | Ultima 7 - The Black Gate - part 14 |
2021-10-23 | fallout boy glow up meme |
2021-10-22 | Last Hope mod 9 |
2021-10-20 | Olympus 2207 - part 4 |
2021-10-18 | Ultima 7 - The Black Gate - part 13 |
2021-10-15 | Last Hope mod 8 |
2021-10-13 | Olympus 2207 - part 3 |
2021-10-11 | Ultima 7 - The Black Gate - part 12 |
2021-09-11 | Fallout.exe Not Responding? |
2021-09-05 | 1-800-Interplay? |
2021-08-28 | Fallout 2 Modding - Scripting 101 |
2021-06-30 | Fallout 2 - Last Hope mod part 7 |
2021-06-17 | Olympus 2207 - part 2 |
2021-06-10 | Olympus 2207 - Redux 1 |
2021-06-08 | Olympus 2207 *NEW* (Official English Translation) - part 1 |
2021-05-26 | Fallout 2 - Last Hope mod part 6 |
2021-05-23 | Party Member Orders in Sfall |
2021-05-19 | Fallout 2 - Last Hope mod part 5 |
2021-05-07 | Fallout 2 Modding - World Maps |
2021-04-21 | #short Silly car mod |
2021-03-25 | Top 6 Upcoming Fallout 2 Mods |
Other Statistics
Fallout 2 Statistics For Quantum Apprentice
Quantum Apprentice currently has 204,709 views spread across 186 videos for Fallout 2. Roughly 17 days worth of Fallout 2 videos were uploaded to his channel, or 30.99% of the total watchable video on Quantum Apprentice's YouTube channel.