Scripting with NI is "Fun" but sometimes "Frustrating"
Borg_DealerOfDeath
Member Posts: 79
For those of you who want to "write" your own player scripts - the use of NearInfinity will help you in doing so.
Warning: Prior to "re-writing" an In-Game script - ALWAYS Copy the .BS file and Re-Name it to a different file name...that way if you "mess up" you will leave the original in-game script intact.
PS: After you "write" a line of Scripting...*always Compile to see if you have any "errors" - if you have written an in-valid script - you will see an "Error" message pop up with a brief description along with the "line number of the error". If you dont see the "Error" message pop up - then you can save it...then run it on ur char for a test to see if what you wanted actually "happens" - If it does happen - then you will have accomplished something that you can be proud of.
If it doesnt happen, then you will be one among the many of us who have to "experiment" until we get the results we desired or finally figure out it cant be done by a "Mortal Man"~!
Warning: Prior to "re-writing" an In-Game script - ALWAYS Copy the .BS file and Re-Name it to a different file name...that way if you "mess up" you will leave the original in-game script intact.
PS: After you "write" a line of Scripting...*always Compile to see if you have any "errors" - if you have written an in-valid script - you will see an "Error" message pop up with a brief description along with the "line number of the error". If you dont see the "Error" message pop up - then you can save it...then run it on ur char for a test to see if what you wanted actually "happens" - If it does happen - then you will have accomplished something that you can be proud of.
If it doesnt happen, then you will be one among the many of us who have to "experiment" until we get the results we desired or finally figure out it cant be done by a "Mortal Man"~!
2
Comments
- Check the .ids files for help about Objects and action/trigger usage.
- Save the script often.
- Don't use many stacked objects like Protector(LastAttackeBy(LastAttackerOf(Myself))), it might sound crazy but they're useful, but still, don't use many.
- Avoid using ANYONE entry, use 0 instead (WeiDU can't compile/handle ANYONE).
Now I make the scripts in a text editor and tell WeiDU to compile them... NI takes too much to load ;p
http://www.contexteditor.org/index.php
And thanks for the info - I will download it - and give it a go.
Thanks for your reply and your helpful hints - its appreciated.