Jump to content


Script action : 341 StaticPalette


6 replies to this topic

#1 deratiseur

  • Members
  • 105 posts
  • Gender:Male
  • Location:GAP, Hautes Alpes, France

Posted 07 October 2011 - 07:26 AM

Hello.

I try to color a spider by aplying a new palette, with a script :

Quote

IF
Global("color","LOCALS",0)
THEN
RESPONSE #100
StaticPalette("MSLI_OC",Myself)
SetGlobal("color","LOCALS",1)
END

The script is compiled without error, but the creature isn't re-palleted

if i add a "DisplayStringHead" action, the text is displayed, so the bloc work. So, is there a secret with the 341, or is this action doesn't working at all ?
French modder of a kit pack : Deratiseur_Unused_Kits_Pack_0.9.5_EE_bis for TOB/BGT/BGEE/BG2EE

#2 devSin

  • Fixpackers
  • 3017 posts
  • Gender:Male

Posted 07 October 2011 - 07:44 PM

That's only for animation objects, I think (it modifies the palette field in ToB area animations).

Creature BAM palette substitutions are hardcoded to the animation slot; there's no game method for changing them.

Edited by devSin, 07 October 2011 - 07:44 PM.


#3 deratiseur

  • Members
  • 105 posts
  • Gender:Male
  • Location:GAP, Hautes Alpes, France

Posted 10 October 2011 - 11:09 AM

OK, thanks

:)
French modder of a kit pack : Deratiseur_Unused_Kits_Pack_0.9.5_EE_bis for TOB/BGT/BGEE/BG2EE

#4 Miloch

    Barbarian

  • Modders
  • 4704 posts
  • Gender:Male
  • Location:At Large

Posted 13 October 2011 - 05:09 AM

You could probably achieve what you want with Polymorph() or ChangeAnimation() instead.
Mod Contributions
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon

#5 devSin

  • Fixpackers
  • 3017 posts
  • Gender:Male

Posted 13 October 2011 - 04:56 PM

That was in my post, but I reread and saw he wanted to color a spider with the slime palette.

Probably he can just use spells/items with one of the RGB tints, although it'll look fuglier than a custom palette would have.

#6 Miloch

    Barbarian

  • Modders
  • 4704 posts
  • Gender:Male
  • Location:At Large

Posted 14 October 2011 - 02:04 AM

View PostdevSin, on Oct 13 2011, 08:56 PM, said:

Probably he can just use spells/items with one of the RGB tints, although it'll look fuglier than a custom palette would have.
Yes, it will glow in the dark or in the light depending on which opcode you use (#51 or #52). I did this with a brownish tint on a spider originally (to make a myrlochar) but ended up repaletting it via BAM Batcher and Infinity Animations to get a less fugly effect.
Posted Image
Mod Contributions
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon

#7 Avenger

  • Modders
  • 3365 posts
  • Gender:Male
  • Location:Hungary

Posted 14 October 2011 - 07:15 AM

Yep, the original IE is quite hard coded regarding animations, even animation palettes.




Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users