1. If someone uses script templates, it is easy to avoid nasty bugs that will screw up everyone's game.
2. The community would have the chance to discuss the best way to implement a feature, because it would all be in one place.
3. Fewer moders would waste time re-inventing the wheel. They would use their productive time to write awsome mods instead!
I am pretty new to Fallout scripting myself, so I do not have many additions yet. I will keep posting any new things I find though!
Please feel free to correct my scripts if needed, or suggest alternate and/or better ways to do it, since I am certain there will be
Also, please do not post other people's scripts unless they want you to :flamethrower:
Ok, now to the point:
Current Script Index:
1. Reference-Walking script template, loops, handling NPC inventory and form Lists
2. Detect Cell Change Script (Found a bug, removed for now)
3. NPC Flee Script Effect
The first one is a classic and not mine of course:
Reference-Walking script template, loops, handling NPC inventory and form Lists:
http://www.cipscis.com/fallout/tutorials/loops.aspx
The second is a script I wrote to detect cell change (Requires FOSE):
Detect Cell Change Script
The third is a script effect I wrote with the extremely helpful advice of SaidenStorm. When applied to an NPC, he flees no matter what.
NPC Flee Script Effect:
scn NPCFleeScriptEffectshort actorConfidence short timerbegin ScriptEffectStartset timer to 0set actorConfidence to getAV ConfidencesetAV Confidence 0EVPendBegin ScriptEffectUpdateif timer < 1 set timer to timer + scriptEffectElapsedSecondselse if (GetCurrentAIProcedure != 16) setAV confidence 0 EVP endif set timer to 0endifEndBegin ScriptEffectFinishsetAV Confidence actorConfidenceEVPend
Well, that's it for now but remember: If you have any useful and difficult scripts to share with the community, either in the form of links, snippets or whole scripts, this is a good place to do it. If any script is added, I will add it to this post with proper credit
Finally, let me know what you think of the idea :celebration: