so i found this character on Mugenarchice: https://mugenarchive.com/forums/downloa ... e-ninnniku
and within it's code there is a certain part that makes the character grow in size upon hit, i've been looking for a way to transfer this to an vore character, to try and make it grow upon hit and shrink back once the battle is over, but i can't find the line of code that causes this, could anyone help?
help with coding
Forum rules
Don't ask about updates. If there is an update, it will simply be posted. If someone is committing to a timeline, they will just tell you the timeline without needing anyone to ask.
Use Looking for master thread when you are not posting about an existing game.
You use this forum and website at your own risk for all links and uploads. There is no quality control or malware scanning or testing done here. Proceed with caution and use a virtual machine (VM) for any uploads strongly recommended. Virus/malware scanners alone are generally not good enough.
Don't ask about updates. If there is an update, it will simply be posted. If someone is committing to a timeline, they will just tell you the timeline without needing anyone to ask.
Use Looking for master thread when you are not posting about an existing game.
You use this forum and website at your own risk for all links and uploads. There is no quality control or malware scanning or testing done here. Proceed with caution and use a virtual machine (VM) for any uploads strongly recommended. Virus/malware scanners alone are generally not good enough.
5 posts
• Page 1 of 1
Re: help with coding
I've never looked at a mugen script before, but it looks like there's no one place where it says 'when you get hit get bigger'. The size seems like it's controlled by var 58 which is initialized to zero and incremented in a bunch of states, then factored into most of the calculations in the action scripts. So a block like this (from the cms file):
Increases var 58 by one, and script like this (from the cmd file):
uses var 58 as a factor to increase a value by a percentage.
Hope this helps!
- Code: Select all
[State ]
type = varadd
trigger1=1
v = 58
value = 1
ignorehitpause = 1
superpausetime = 9999999999999
pausemovetime = 9999999999999
Increases var 58 by one, and script like this (from the cmd file):
- Code: Select all
triggerall = P2Dist x =[0,floor(70*(1+var(58)*0.01))]
uses var 58 as a factor to increase a value by a percentage.
Hope this helps!
My VGame mod: http://aryion.com/forum/viewtopic.php?f=79&t=21167
-
Seifens - Intermediate Vorarephile
- Posts: 537
- Joined: Fri Nov 25, 2005 12:00 am
- Location: Seattle-ish
Re: help with coding
Also no clue about mugen, but found this aswell:
Buuut no clue....
- Code: Select all
[State ];UŒ‚ƒwƒ‹ƒp[
type = Helper
triggerall = var(58)>=100
triggerall = anim=20
Trigger1 = AnimElemTime(3)=2
Trigger2 = AnimElemTime(7)=2
name = "25"
ID = 25
pos = -var(58)*0.05,0
postype = p1
stateno = 25
keyctrl = 0
ownpal = 1
facing = 1
;supermovetime = 0
size.xscale=1
size.yscale=1
size.ground.back = 10
size.ground.front = 10
size.air.back = 10
size.air.front = 10
[State ];UŒ‚ƒwƒ‹ƒp[
type = Helper
triggerall = var(58)>=100
triggerall = anim=21
Trigger1 = AnimElemTime(3)=2
Trigger2 = AnimElemTime(7)=2
name = "25"
ID = 25
pos =var(58)*0.05,0
postype = p1
stateno = 25
keyctrl = 0
ownpal = 1
facing = -1
;supermovetime = 0
size.xscale=1
size.yscale=1
size.ground.back = 10
size.ground.front = 10
size.air.back = 10
size.air.front = 10
Buuut no clue....
Nothing better than a warm, spacious womb to rest and relax in.
Posting necro memes below necro posts for fun.
Posting necro memes below necro posts for fun.
-
RC8015 - Intermediate Vorarephile
- Posts: 457
- Joined: Sun Oct 14, 2012 1:26 pm
Re: help with coding
Not sure about mugen but you probably want to look at the size.xscale and the size.yscale. If this is in the code it would probably be what controls the size of the sprites used in the game. So with in the code look for something changing the value of size.xscale and size.yscale. This would be what you are probably looking for. I wont be able to go through that code right now to see where it is at but, I figured my guess might help you out.
-
ajmajm28 - Somewhat familiar
- Posts: 144
- Joined: Sun Aug 14, 2011 6:03 pm
Re: help with coding
As the others mentioned in this thread, the size changing is handled by var 58. There's a number of other state controllers that use it to adjust her size, such as this one in state -2:
This AngleDraw controller is what draws the character's sprite larger according to var 58. Putting this in state -2 should make this a universal effect on your character, but you might have some other difficulties arise from that, such as binding on grabs, that you may have to edit. Manipulate the variable however you want and the character's size changes accordingly. If you need more help implementing this, PM me.
- Code: Select all
[State ]
type = AngleDraw
trigger1 = stateno!=[170,171]
trigger1 = stateno!=[180,181]
trigger1 = stateno!=5150
scale = 1+var(58)*0.01,1+var(58)*0.01
This AngleDraw controller is what draws the character's sprite larger according to var 58. Putting this in state -2 should make this a universal effect on your character, but you might have some other difficulties arise from that, such as binding on grabs, that you may have to edit. Manipulate the variable however you want and the character's size changes accordingly. If you need more help implementing this, PM me.
-
Pilum - Participator
- Posts: 196
- Joined: Wed Oct 28, 2015 11:07 pm
5 posts
• Page 1 of 1