Day-Night Loop.fscript 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // FinalSun Script file
  2. // Name: Start Day\Night Loop
  3. // Written By: Bill Brislin aka RVMECH
  4. // Last Change: Dec,24,2001
  5. // Be careful when editing scripts, they may cause damage to maps if used improperly
  6. AskContinue("This script will add a trigger that starts the Day and Night loop after 50 seconds, it will also set your lighting levels for the proper operation of the loop. Remember to set the enable & disable parameters in the triggers when when you are finished. Ready...hope this works?");
  7. AllowAdd("Because it makes your life easier when someone else does all the dirty work");
  8. // now add the trigger, use the variable %TriggerID% as ID filler, and let a tag be created automatically
  9. AddTrigger("%trig1%", "Neutral,<none>,Start_Day_Night_Loop,0,1,1,1,0", "1,13,0,2", "1,53,2,Please_select_Sunrise,0,0,0,0,A", "FALSE");
  10. GetIniKey("%action%", "Actions","%trig1%");
  11. SetParam("%action%", "1","%trig2%");
  12. SetIniKey("Actions","%trig1%", "%action%");
  13. AddTag("%newtag1%", "0,Start_Day_Night_Loop,%trig1%");
  14. AddTrigger("%trig2%", "Neutral,<none>,Sunrise,1,1,1,1,0", "1,13,0,32", "5,53,2,please_select_Ambient_up,0,0,0,0,A,54,2,please_select_Sunrise,0,0,0,0,A,73,0,95,0,0,0,0,A,72,0,1070000000,0,0,0,0,A,71,0,1019000000,0,0,0,0,A", "FALSE");
  15. GetIniKey("%action%", "Actions","%trig2%");
  16. SetParam("%action%", "3", "%trig2%");
  17. SetIniKey("Actions", "%trig2%", "%action%");
  18. AddTag("%newtag2%", "2,Sunrise,%trig2%");
  19. AddTrigger("%trig3%", "Neutral,<none>,Ambient_is_Up,1,1,1,1,0", "1,46,0,95", "2,53,2,please_select_Sunset,0,0,0,0,A,54,0,please_select_Ambient_up,0,0,0,0,A", "FALSE");
  20. GetIniKey("%action%", "Actions","%trig3%");
  21. SetParam("%action%", "3", "%trig3%");
  22. SetIniKey("Actions", "%trig3%", "%action%");
  23. AddTag("%newtag3%", "2,Ambient_is_Up,%trig3%");
  24. AddTrigger("%trig4%", "Neutral,<none>,Sunset,1,1,1,1,0", "1,13,0,32", "5,53,2,please_select_Ambient_Down,0,0,0,0,A,54,2,please_select_Sunset,0,0,0,0,A,73,0,40,0,0,0,0,A,72,0,1070000000,0,0,0,0,A,71,0,1019000000,0,0,0,0,A", "FALSE");
  25. GetIniKey("%action%", "Actions","%trig4%");
  26. SetParam("%action%", "3", "%trig4%");
  27. SetIniKey("Actions", "%trig4%", "%action%");
  28. AddTag("%newtag4%", "2,Sunset,%trig4%");
  29. AddTrigger("%trig5%", "Neutral,<none>,Ambient_is_Down,1,1,1,1,0", "1,45,0,40", "2,53,2,please_select_Sunrise,0,0,0,0,A,54,0,please_select_Ambient_Down,0,0,0,0,A", "FALSE");
  30. GetIniKey("%action%", "Actions","%trig5%");
  31. SetParam("%action%", "3", "%trig5%");
  32. SetIniKey("Actions", "%trig3%", "%action%");
  33. AddTag("%newtag5%", "2,Ambient_is_Down,%trig5%");
  34. SetSafeMode("FALSE","Necessary for setting lighting values..hang on to your hat");
  35. SetIniKey("Lighting","Level","0.015000");
  36. SetIniKey("Lighting","IonLevel","0.010000");
  37. SetIniKey("Lighting","Ambient","0.400000");
  38. SetIniKey("Lighting","Red",".950000");
  39. SetIniKey("Lighting","Green","0.950000");
  40. SetIniKey("Lighting","Blue","1.100000");
  41. SetIniKey("Lighting","IonAmbient","0.380000");
  42. SetIniKey("Lighting","IonRed","1.000000");
  43. SetIniKey("Lighting","IonGreen","1.000000");
  44. SetIniKey("Lighting","IonBlue","1.400000");
  45. SetIniKey("Lighting","DominatorRed","0.850000");
  46. SetIniKey("Lighting","DominatorBlue","0.300000");
  47. SetIniKey("Lighting","DominatorGreen","0.200000");
  48. SetIniKey("Lighting","DominatorLevel","0.000000");
  49. SetIniKey("Lighting","DominatorGround","0.000000");
  50. SetIniKey("Lighting","DominatorAmbient","1.500000");
  51. SetIniKey("Lighting","DominatorAmbientChangeRate"'"0.001000");
  52. Message("Lighting Levels have been changed and the Day Night Loop has been added","Success");