Timeslip said:16 bit would imply a limit of 65535, not 1024, but there's no hard limit in sfall; as long as you can keep supplying it with different strings it should keep going. You may be hitting a different limit. Is there a limit on the number of strings you can include in one script? If you take your perk script up to the point of crashing, and then start using more globals from other scripts does it still crash?
"16 bit would imply a limit of 65535, not 1024"
my bad
"Is there a limit on the number of strings you can include in one script? "
not sure
it actually doesn't crash,it causes another script to not set a global,my perk_per script triggers if the player level is not the same as a global,and it displays "you have a perk waiting to be chosen" then sets a global to prevent spam(and other things) with that many globals it spams the message over and over
edit : this is the format of the different strings i've been using,i am up to almost 2k "perk0001" as far as i know i haven't duplicated any strings,and that format is used in 2 scripts,i've been careful not not duplicate any
edit : those that want to know get_attack_type returns are
Code:
Left Weapon Mode 1 0
Left Weapon Mode 2 1
Right Weapon Mode 1 2
Right Weapon Mode 2 3
Punch 4
kick 5
donno 6 or 7
Strong Punch 8
Hammer Punch 9
Haymaker 10
Jab 11
Palm Strike 12
Piercing Strike 13
Strong Kick 14
Snap Kick 15
Power Kick 16
Hip Kick 17
Hook Kick 18
Piercing Kick 19
edit : kudos Timeslip,the Megamod problem with on death weapon drop is fixed,i just did the tyler fight in the den with it enabled,no crashes or problems
edit : narrowed the problem somewhat,slowdown happens when a list_critter or list_item is fired,with multiple running it slows to unplayable,tho previous versions of sfall i had the same exact lists without slowdown,hope that helps
edit : assuming that the amount of strings has a limit per script,i separated the set_global function into 5 separate scripts,then tested it,it still didn't set the global in my perk_per script,boo hoo
edit : i am assuming arg2 or arg3 is the action type ,no idea what the table would be tho(the numbers)
Code:
hs_calcapcost.int
critter arg1 - The critter performing the action
int arg2 - No idea
int arg3 - Still no idea
int arg4 - The normal ap cost
int ret1 - The new ap cost
edit : pretty sure ive either not reached the max string amount(tho one script had almost 3k) or the game/sfall does not limit it,ive seperated much of my custom perks mod into a few smaller mods,and now a different sfall global is not setting
Nirran