Search found 59 matches

by Cyrus
Sun Nov 25, 2018 10:51 am
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 40988

Damage formula

You're right. But my point is that even if it compiles, I may have made other errors that compiler doesn't catch. So that's what I meant. But absolutely, I will first try to compile it myself. Burn a question about if statements in SSL. given the following: procedure test() if condition_A then Actio...
by Cyrus
Sun Nov 25, 2018 9:19 am
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 40988

Damage formula

Regarding your last paragraph, I totally get your logic. I actually had thought about why you might have done it and I already figured this the probably the reason why you did it, but I wanted to make sure its not a forgotten temp code. 2 questions: 1. In SSL scripting, if I create a procedure (proc...
by Cyrus
Sat Nov 24, 2018 6:24 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 40988

Re: Damage formula

Burn I also noticed this: procedure get_critical_level(variable who) begin variable level := random(0, 5); if has_trait(TRAIT_PERK, who, PERK_better_criticals) then level := level + 1; return level; end Now again I might be mistaken, but from what I understand the critical levels are a maximum of 6 ...
by Cyrus
Sat Nov 24, 2018 5:32 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 40988

Re: Damage formula

No, it's not C++, it's Star-Trek Scripting Language, or SSL. It does bear slight resemblance to C++ in that it also uses macro preprocessing. Currently the best way to work with it is extended sfall script editor . You're correct, the script plus the 4 files should be enough. But you'll probably wa...
by Cyrus
Sat Nov 24, 2018 2:24 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 40988

Re: Damage formula

Thanks for that. I have noticed something which I think is an error in code, but because I'm not settled in this language I'm can't be very sure. Inside "procedure get_total_damage", line 234, you have called the procedure "get_dr_dt(attacker, target, dmg_type, dr_mod, flags)", w...
by Cyrus
Sat Nov 24, 2018 9:37 am
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 40988

Re: Damage formula

If you want a variable to be visible anywhere in the script, you just declare it outside any procedure. That ^ ...what I needed. Well a few things I needed to know was 1. how to ensure certain operations are done in float, 2. how to make sure certain variables are saved as float, 3. how to convert ...
by Cyrus
Fri Nov 23, 2018 11:41 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 40988

Re: Damage formula

Thanks for that burn. Where can I learn the SSL syntax and documentation? Is there such a source? I have found this page, https://falloutmods.fandom.com/wiki/Fallout_scripting_language_(de_dood) . But that's not complete. I've also read some comments about some documentation being included in the &q...
by Cyrus
Thu Nov 22, 2018 9:18 am
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 40988

Re: Damage formula

Very well then. Thanks for the above. The references you mentioned are great, I didn't know about their existence. Not to say I understand them, I don't really for the most part, but thanks. Your code is written in C++, correct? I'm also wondering what do I need in order to edit and recompile it? I ...
by Cyrus
Tue Nov 20, 2018 12:47 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 40988

Damage formula

Hello Burn. You have mentioned everywhere not to PM you, so I have to post this here. First off, I really like and appreciate your damage formula. Work well done, and IMO best I've seen for the very reasons that you have mentioned, particularly that other formulas add unwanted elements which aren't ...