frodo321 Posted August 10, 2011 Share Posted August 10, 2011 (edited) i tried to search online for a solution... i found out that the script isn't correct and that's why it won't save... so i used the online invalidator and everything seemed fine... but it still won't save... it won't save even the original script that i am editing... so here's my script (it might be completely incorrect because this is my first time in the GECK and first time i'm writing a script :) ) scn TTPC1 ref EquipWeaponref WeapHasScope Begin GameMode if GetContainer == Player set Weapon to Player.GetWeapon1person EquipWeapon if IsPC1stPerson == 0 set WeapHasScope to Player.GetWeaponHasScope EquipWeapon set EquipWeapon to Player.GetEquippedObject 5 if WeapHasScope == 1 Player.GetWeaponHasScope EquipWeapon elseif WeapHasScope == 0 Player.SetWeaponSightFOV 30 EquipWeapon else Player.GetWeaponHasScope EquipWeapon endif endif endifEnd Edited August 10, 2011 by frodo321 Link to comment Share on other sites More sharing options...
drakeelvin Posted August 10, 2011 Share Posted August 10, 2011 (edited) First of all, ref WeapHasScope -- needs to be int to match the return type of GetWeaponHasScope, so ...int WeapHasScope if WeapHasScope == 1 Player.GetWeaponHasScope EquipWeapon I've never used this function but I've seen it in GECK reference. What's that conditional supposed to do? I think you were wanting to do a Set FOV function after the if ...? Or am I wrong? Edited August 10, 2011 by drakeelvin Link to comment Share on other sites More sharing options...
frodo321 Posted August 10, 2011 Author Share Posted August 10, 2011 (edited) First of all, ref WeapHasScope -- needs to be int to match the return type of GetWeaponHasScope, so ...int WeapHasScope if WeapHasScope == 1 Player.GetWeaponHasScope EquipWeapon I've never used this function but I've seen it in GECK reference. What's that conditional supposed to do? I think you were wanting to do a Set FOV function after the if ...? Or am I wrong? no... i wanted to keep the FOV settings and change them only if the weapon doesn't have a scope... and also change it only in 3rd person view... Edited August 10, 2011 by frodo321 Link to comment Share on other sites More sharing options...
ozziefire Posted August 10, 2011 Share Posted August 10, 2011 I'm assuming you don't have GECK POWERUP 1.4 installed it is in the FNV Nexus, when installed it will tell you which line is prevening your scripts from saving and what the problem is :)Be sure to read the install instructions and create a new shortcut to start GECK with it instad of the normal GECK shortcut. Link to comment Share on other sites More sharing options...
frodo321 Posted August 10, 2011 Author Share Posted August 10, 2011 I'm assuming you don't have GECK POWERUP 1.4 installed it is in the FNV Nexus, when installed it will tell you which line is prevening your scripts from saving and what the problem is :)Be sure to read the install instructions and create a new shortcut to start GECK with it instad of the normal GECK shortcut. this doesn't work for me... the GECK is still the same :) Link to comment Share on other sites More sharing options...
ozziefire Posted August 10, 2011 Share Posted August 10, 2011 I'm assuming you don't have GECK POWERUP 1.4 installed it is in the FNV Nexus, when installed it will tell you which line is prevening your scripts from saving and what the problem is :)Be sure to read the install instructions and create a new shortcut to start GECK with it instad of the normal GECK shortcut. this doesn't work for me... the GECK is still the same :)It didn't work for me either till I reread the instuctions and reinstalled it again, you have to start GECK POWERUP and it should start the GECK . It's worth getting it going will save a lot of sanity, check you have the latest version too :) Link to comment Share on other sites More sharing options...
drakeelvin Posted August 10, 2011 Share Posted August 10, 2011 (edited) A few other questions regarding this script, just to make sure: GetEquippedObject is an NVSE command, so you do have NVSE? The following 2 statements logically appear backwards, you use EquipWeapon before defining it. set WeapHasScope to Player.GetWeaponHasScope EquipWeapon set EquipWeapon to Player.GetEquippedObject 5 In the following statement: set Weapon to Player.GetWeapon1person EquipWeapon I don't see any declaration for "Weapon" nor can I find any reference to "GetWeapon1person" in either the GECK or NVSE references, though the NVSE docs are out of date. And regarding my previous question: Player.GetWeaponHasScope EquipWeapon This is a boolean function so I don't see any logical reason to put it as a stand-alone statement. Edited August 10, 2011 by drakeelvin Link to comment Share on other sites More sharing options...
frodo321 Posted August 10, 2011 Author Share Posted August 10, 2011 i alredy fixed it... i launched the GECK without NVSE... stupid me :) Link to comment Share on other sites More sharing options...
Recommended Posts