Author Topic: !@#$%^&*  (Read 1372 times)

Offline Galactygon

  • Modding since 2002
  • Planewalker
  • *****
  • Posts: 378
  • Gender: Male
  • Creator of spells
!@#$%^&*
« on: September 18, 2010, 04:54:16 PM »
Is there any way I can smuggle in special characters into the array without failing to compile?

I'm trying to make a very cool way to mass patch .spl files by specifying stuff in a single line - the below entries would work normally if I had them in a .2da file, but ASSOCIATIVE_ARRAY is faster to handle.

-Galactygon

Code: [Select]
ACTION_DEFINE_ASSOCIATIVE_ARRAY ~test~ BEGIN

        SOURCE=SPPR102.spl;RESOURCE=SPCOMSTT => DELETEEFFECT
        SOURCE=SPPR102.spl;RESOURCE=SPCOMEND => DELETEEFFECT
        SOURCE=SPPR102.spl;OPCODE=39 => ADDEFFECT;OPCODE=215;RESOURCE=GENERIC

        SOURCE=SPPR110.spl;OPCODE=215 => DELETEEFFECT

        SOURCE=SPPR111.spl;OPCODE=50 => DELETEEFFECT

        SOURCE=SPPR212.spl;OPCODE=141 => CHANGEEFFECT;OPCODE=215;PARAMETER1=0;PARAMETER2=0;RESOURCE=LC_SPOIS
        SOURCE=SPPR212.spl;OPCODE=50 => CHANGEEFFECT;PARAMETER1=9868800;PARAMETER2=1310720;TIMING=1;DURATION=0

END

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: !@#$%^&*
« Reply #1 on: September 18, 2010, 05:00:59 PM »
Code: [Select]
ACTION_DEFINE_ASSOCIATIVE_ARRAY ~test~ BEGIN

        ~SOURCE=SPPR102.spl;RESOURCE=SPCOMSTT~ => DELETEEFFECT
        ~SOURCE=SPPR102.spl;RESOURCE=SPCOMEND~ => DELETEEFFECT
        ~SOURCE=SPPR102.spl;OPCODE=39~ => ~ADDEFFECT;OPCODE=215;RESOURCE=GENERIC~
<..>
END
?
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Galactygon

  • Modding since 2002
  • Planewalker
  • *****
  • Posts: 378
  • Gender: Male
  • Creator of spells
Re: !@#$%^&*
« Reply #2 on: September 18, 2010, 05:05:42 PM »
Never saw it before - thanks!

-Galactygon

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: