Jump to content

maximum number of effects in a spell?


subtledoctor

Recommended Posts

Posted

Is anyone aware of a maximum number of effects that a .SPL file can process in an extended header?  My test install has >2,000 effects (opcode 177) in a spell applied at level 1... I haven't tested it yet, I'm just curious if people here have discussed this or have any knowledge of it already.

Posted

If you're looking for a hard cap, spell abilities store the number of effects present as a word - so technically a spell can have 65,535 effects in a single ability without crashing. Game will probably lag out hard if you cast a spell with that many effects though. 😛

Posted

That's one creature... try to summon creatures (ij#summ) already afflicted with the spell with this script part added on top of say, to ar0602.bcs

IF
		Global("customglobal","GLOBAL",0)
THEN
	RESPONSE #100
		CreateCreature("ij#summ",[3000.650],1)  // custom creature
END

... and let it run a few moments, as you can disable it with SetGlobal(balh balh) -console command and then see if the game skips a moment or a few dozen ... hours, when you screen is full of them.

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...