help with coding

Forum for the Vore games, and other downloads
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.

help with coding

Postby crosswarrior24 » Sun May 27, 2018 8:13 am

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?
crosswarrior24
Been posting for a bit
 
Posts: 20
Joined: Tue Apr 24, 2018 11:53 am

Re: help with coding

Postby Seifens » Sun May 27, 2018 1:24 pm

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):

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!
User avatar
Seifens
Intermediate Vorarephile
 
Posts: 537
Joined: Fri Nov 25, 2005 12:00 am
Location: Seattle-ish

Re: help with coding

Postby RC8015 » Sun May 27, 2018 5:46 pm

Also no clue about mugen, but found this aswell:

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.
User avatar
RC8015
Intermediate Vorarephile
 
Posts: 457
Joined: Sun Oct 14, 2012 1:26 pm

Re: help with coding

Postby ajmajm28 » Sun May 27, 2018 5:58 pm

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.
User avatar
ajmajm28
Somewhat familiar
 
Posts: 144
Joined: Sun Aug 14, 2011 6:03 pm

Re: help with coding

Postby Pilum » Sun May 27, 2018 8:07 pm

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:
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.
User avatar
Pilum
Participator
 
Posts: 196
Joined: Wed Oct 28, 2015 11:07 pm


Return to Vore game