Jump to content

Psionic mazes


Recommended Posts

I'm fairly certain the default version gives immunity to maze (certainly the version on my system does, and I don't think it's mod-granted). The text of the spell is:

 

 

Chaotic Commands renders a creature immune to magical commands. Suggestion, Charm, Domination, Command, Sleep, Maze, and Confusion are all spells that fit into this category. This spell also protects the target from psionic blast. This spell affects only one creature and lasts for the duration or until dispelled.

Link to comment
// chaotic commands not protecting against psionic maze
COPY_EXISTING ~sppr508.spl~ ~override~
 READ_LONG  0x64 "abil_off"
 READ_SHORT 0x68 "abil_num"
 READ_LONG  0x6a "fx_off"
 SET "fx_delta" = 0
 FOR ("index" = 0; "%index%" < "%abil_num%"; "index" = ("%index%" + 1)) BEGIN // fix existing indices
READ_SHORT  ("%abil_off%" + 0x1e + (0x28 * "%index%")) "abil_fx_num"
READ_SHORT  ("%abil_off%" + 0x20 + (0x28 * "%index%")) "abil_fx_idx"
SET "abil_fx_idx" = ("%abil_fx_idx%" + "%fx_delta%")
WRITE_SHORT ("%abil_off%" + 0x20 + (0x28 * "%index%")) "%abil_fx_idx%"
FOR (index2 = 0; index2 < abil_fx_num; index2 = index2 + 1) BEGIN
  READ_SHORT ("%fx_off%" +		(0x30 * ("%index2%" + "%abil_fx_idx%"))) "opcode"
  READ_ASCII ("%fx_off%" + 0x14 + (0x30 * ("%index2%" + "%abil_fx_idx%"))) "resref"
  PATCH_IF (("%opcode%" = 206) AND ("%resref%" STRING_COMPARE_CASE "spwi813" = 0)) BEGIN
	READ_ASCII ("%fx_off%" +		(0x30 * ("%index2%" + "%abil_fx_idx%"))) "clone" (48)
	INSERT_BYTES   ("%fx_off%" +		(0x30 * "%abil_fx_idx%")) 0x30 // new effect
	  WRITE_ASCIIE ("%fx_off%" +		(0x30 * "%abil_fx_idx%")) "%clone%"
	  WRITE_ASCII  ("%fx_off%" + 0x14 + (0x30 * "%abil_fx_idx%")) ~spin774~
	SET "fx_delta" = "%fx_delta%" + 1
	WRITE_SHORT ("%abil_off%" + 0x1e + (0x28 * "%index%")) ("%abil_fx_num%" + 1)
	SET "index2" = "%abil_fx_num%" // kills loop
  END
END
 END
 BUT_ONLY_IF_IT_CHANGES

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...