Search found 452 matches

by Magus
Mon Nov 26, 2018 4:03 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 41011

Damage formula

I'm happy to help people who help themselves (and others), that's what BGforge is about.
by Magus
Mon Nov 26, 2018 3:09 pm
Forum: FO2tweaks
Topic: Suggestion
Replies: 4
Views: 6739

Suggestion

I understand what you're saying, Baldur's Gate difficulty setting works that way. But personally, as a hardcore player, I prefer my combat "fair", meaning that everyone gets treated equally, PCs and NPCs alike. So I wouldn't care for such a change. Party vs party fights are usually unequal...
by Magus
Mon Nov 26, 2018 2:43 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 41011

Damage formula

Yes those are the files.
by Magus
Mon Nov 26, 2018 5:01 am
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 41011

Damage formula

It's in the headers, search.
by Magus
Sun Nov 25, 2018 12:23 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 41011

Damage formula

No, whitespace doesn't really matter. Except in defines, I think.
But then again, you can easily test for these things yourself.
by Magus
Sun Nov 25, 2018 11:56 am
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 41011

Damage formula

There's no jump. The script is executed line by line, like in any other programming language. "end" denotes an end of a begin block. The compliler will tell you if you break the code.
by Magus
Sun Nov 25, 2018 10:09 am
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 41011

Damage formula

1. No. You should return the value from B and assign it in A. 2. Fine. You need not and must not re-declare script-wide vars. 3. max is somewhere in the headers, you need to include it. Or write it yourself, it's 3 lines of code. I don't mind taking a look, but you really should try to at least comp...
by Magus
Sun Nov 25, 2018 3:07 am
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 41011

Re: Damage formula

Burn there is no editor in the above link that you pointed me to. I did however find an editor in the sfall modders pack. So am I suppose to do something with these extended editor files? how should I use them? They're just files, I don't know what to do with them. I think the extended one is publi...
by Magus
Sat Nov 24, 2018 2:40 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 41011

Re: Damage formula

Yes the first one is an oversight, thanks.
As for the second, I think the compiler just counts the vars in declaration, so it doesn't really matter. But I'll update it to match the definition all the same.
by Magus
Sat Nov 24, 2018 12:21 pm
Forum: FO2tweaks
Topic: Damage formula
Replies: 26
Views: 41011

Re: Damage formula

1. What operations? If it's numbers, just use "2.0" instead of "2". For variables, I do "1.0 * x..." . 2. Variables are what they are assigned. They don't change by themselves. Note that script vars get all reset on game load. If you need them to persist, use sfall glob...