In my mod, The IRIS Initiative, i would like to have advanced challenge versions of certain puzzles which the player could unlock by doing certain things in certain maps, and also would like to prevent players skipping chapters. I have a VERY vague idea on how to do this, but i'd like some help. what i'm thinking, is that i could run a vscript that edits my mod's "extras.txt" which it uses as it's single player menu. this would be very difficult because a) i never figured out how to run a vscript that somebody else made and b) i have no idea how to vscript at all. not to mention, it would be a script writing a script, and i heard that can be very buggy at times.
Unlockable sourcemod content...?
Posted Jun 07, 2014
Registered users don't see ads! Register now!
Posted Jun 08, 2014
Replied
22 hours
later
I have NO idea about how you could do this.
I think it's impossible but I'm not a Vscripter.
Posted Jun 08, 2014
Replied
57 minutes
later
opticalprocessor wrote:
I have NO idea about how you could do this.I think it's impossible but I'm not a Vscripter.
thanks for summarizing. 
Registered users don't see ads! Register now!
Posted Jun 15, 2014
Replied
6 days
later
For security reasons VScripts cannot read or write files (imagine what would happen if someone released a map that overwrote vbsp.exe with a virue). It should be possible using a logic_auto and env_global, but I don't know how well that works in Portal 2, and you'd need to rewrite the elevator transition logic slightly.