Unlockable sourcemod content...?
Quote from tile on June 7, 2014, 9:24 pmIn 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.
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.
Quote from opticalprocessor on June 8, 2014, 7:37 pmI have NO idea about how you could do this.
I think it's impossible but I'm not a Vscripter.
I have NO idea about how you could do this.
I think it's impossible but I'm not a Vscripter.
please
Quote from tile on June 8, 2014, 8:35 pmopticalprocessor 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.
I think it's impossible but I'm not a Vscripter.
thanks for summarizing.
Quote from FelixGriffin on June 15, 2014, 11:24 amFor 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.
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.