YesNoOk
avatar

help with *sigh* Remappal (Read 191 times)

Started by Duke of Corvus, July 02, 2018, 12:49:35 am
Share this topic:
help with *sigh* Remappal
#1  July 02, 2018, 12:49:35 am
  • ***
  • For the Murder!
So I'm tryin to make use mugen's resources to make Ahuron's orochi team chars as accurate as possible:
specifically I'm trying to make them properly change palettes when changing from normal to orochi mode
so far I've tried with the little knowledge I've extracted from scrtrl documentations and I've succeded at certain point with Ahurons Shermie

I successfully made her change paletes when changing from normal to orochi and back again with this simple code in her transform statedef:
Code:
[State 0]
type = RemapPal
trigger1 = var(1)=1 ; triggers orochi on
source = 1,1
dest = 1,6+palno

[State 0]
type = RemapPal
trigger1 = var(1)=0 ; triggers orochi off
source = 1,1
dest = 1,palno

however I've run into two issues:
1: palete change is not permanent and resets on the next round , this means orochi shermie will have a normal palette on the next round.
2: If she outright starts as orochi shermie (pal 7-12) the first time she goes normal, her palette won't change, then when she returns to orochi mode the change triggers, orochi mode will have normal palette and subsequent changes will have switched palettes.

So basically my issues are:
Is it possible for Remppal to carry to the next round?
how to" juggle" the triggers for the ramappal to work in both normal (pal 1-6) or oroshi (pal 7-12). In this regard I've tried setting all kind of conditions without success.

Edit nevermind Issue #2, got it working by make it trigger with palettes only:
Code:
[State 0]
;Normal to Orochi
type = RemapPal
triggerall = palno<=6
trigger1 = var(1)=1
source = 1,1
dest = 1,6+palno
[State 0]
type = RemapPal
triggerall = palno<=6
trigger1 = var(1)=0
source = 1,1
dest = 1,palno

;Orochi to normal
[State 0]
type = RemapPal
triggerall = palno>6
trigger1 = var(1)=0
source = 1,1
dest = 1,palno-6
[State 0]
type = RemapPal
triggerall = palno>6
trigger1 = var(1)=1
source = 1,1
dest = 1,palno

just wondering how to make it carry to next round
Lord Noble Eye of Dezeroff; High Commander of the Reconnaissance Division, Airborne Corps; Fifth Seat in the Murder's Council; and Duke of Corvus
Last Edit: July 02, 2018, 01:07:07 am by Duke of Corvus
Re: help with *sigh* Remappal
#2  July 02, 2018, 12:57:42 am
  • avatar
  • ***
  • Original characters are my forte.
    • http://network.mugenguild.com/bane84/
;Variables with this index and above will not have their values
;reset to 0 between rounds or matches. There are 60 int variables,
;indexed from 0 to 59, and 40 float variables, indexed from 0 to 39.
;If omitted, then it defaults to 60 and 40 for integer and float
;variables repectively, meaning that none are persistent, i.e. all
;are reset. If you want your variables to persist between matches,
;you need to override state 5900 from common1.cns.
IntPersistIndex = 50
FloatPersistIndex = 40

You are using var(1) for your transformation variable.  It is most likely being reset between rounds.
Re: help with *sigh* Remappal
#3  July 02, 2018, 01:56:04 am
  • ***
  • For the Murder!
var(1) is what determines shermie's current mode.
if var(1)=0, she's normal mode
if var(1)=1, she's orochi mode

var(1) persists between rounds because orochi mode also carries to the next round, what is being reset is the remmappal.

that's my main doubt, can remppal be carried between rounds? like checking at round start the state of var(1) and re-applying it.... oh wait, I think I got it
Lord Noble Eye of Dezeroff; High Commander of the Reconnaissance Division, Airborne Corps; Fifth Seat in the Murder's Council; and Duke of Corvus
Re: help with *sigh* Remappal
#4  July 02, 2018, 04:03:30 am
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
State 5900 ;)

Re: help with *sigh* Remappal
#5  July 02, 2018, 04:17:33 am
  • ***
  • For the Murder!
Solved
Lord Noble Eye of Dezeroff; High Commander of the Reconnaissance Division, Airborne Corps; Fifth Seat in the Murder's Council; and Duke of Corvus