Falke88 10 Posted June 29, 2011 (edited) Hey guys! I'm kinda new to scripting but well, did it back the days in OFP pretty often. Long time tho... --- Back to the Topic... I want you to ask how can I use variables or data from an existing config? Example: Theres a DAC Config File which stores all creates DAC Zones. There I can find the "Zone_Name" and within the name the "Zone_ID". The Zone ID contains alle Zone Names which have the same ID. (It's used to link zones with each other withing DAC) Now I want to get all Zone Names which use the specific Zone ID Noob Example: "Zone_ID_1" -> contains "Zone_NameA" & "Zone_NameB" in MY Config I want to add these names just by telling the Zone ID like: Hey I want to use the Waypoints of ["Zone_ID_1"] so my script will work. = should take the data from that DAC Config file and paste it in my config Hey I want to use the Waypoints of ["Zone_NameA", "Zone_NameB"] I imagined that it will mybe look like that (totally scifi script here) { get [open "DAC_Zones.sqf"] lookfor [Zone_ID_1] then get "Zone_Names" within "actual_function" and paste them into my config for variable "Zone_ID_1" :D I wish it would be that easy... hope you can follow me until here... PS: Please don't bugger me about "hey dude first learn scripting at all" I don't wanna know everything about scripting - just the things I need to know for my actual idea. greets falke Edited June 29, 2011 by Falke88 Share this post Link to post Share on other sites
rexehuk 16 Posted June 29, 2011 http://forums.bistudio.com/showthread.php?t=112701&highlight=DAC+Variables I compiled this... no ones used it though. Be advised ALL variables must be read SERVERSIDE as they are not transmitted across the network. This basically means w/e you're scripting needs to be ran in the server environment, not on clients. Share this post Link to post Share on other sites
Falke88 10 Posted June 29, 2011 (edited) well i'm using this on a deticated anyways so it shouldnt be a prob here. But that won't answer my whole question anyway.... DAC_Zones is set as a variable here - but how can I get infos / data about the Zone IDs and their belonging Zones (Zone Names) Edited June 29, 2011 by Falke88 Share this post Link to post Share on other sites