I have been taking a break from scripts in the Toolset due to frustration (for those he have seen my posts my creating a class struggles). But now that I am looking at it again it is because even unedited Toolset Scripts have errors even before edits?
I am talking about the "Script must contain either a main or StartingConditional" error I tried to look up how to fix it but maybe it is just because I don't get script talk but I do not see how to fix these errors if they error out before I even edit them.
Example sys_rewards_h even without edits gets the above error message, so does that mean this script cannot be edited? Or what needs to be done so it can. I came across this script when investigating XP Plot rewards not giving the correct amount of XP compared to the Rewards.xml then I saw:
// reward XP
nXP = FloatToInt(nXP * 0.5); // half of total XP rewardRewardXPParty( nXP, XP_TYPE_PLOT );
Nice to finally realize why it didn't match up and gave me an idea but when adjusting values and attempting to compile script I got the error, then I tried with out editing and it still got the error. This is a simple script compared to the ones I actually have been trying to do so I figure this is a easier example to start with and get help on.
I know some people have had success with script editing but for those self taught how do I work with this?
Edited by HollownessDevoured, 19 May 2022 - 06:24 AM.