A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Some one have or find this Chun Li? I need your help
by Drakkon245 Today at 2:21 am

» M.I.C.A Final Version Edition 1.0 & 1.1 640x480 UPDATED 1/23/2018
by OldGamer Yesterday at 10:34 pm

» old video for a game i just bought and discovered
by Mistah Jorge Yesterday at 7:50 pm

» Happy ~Birthday~ to *** Angelus_Silverhead ***
by malevka1 Yesterday at 3:48 pm

» Trunks CVS
by FlavioCamarao Yesterday at 3:10 pm

» Character
by yolomate Yesterday at 2:43 pm

Special Features at MMV







Chat on MMV w/ Discord


Share | 
 

 Variables and helpers

View previous topic View next topic Go down 
AuthorMessage
Mega_Man

avatar

Posts : 146
Join date : 2016-01-23

PostSubject: Variables and helpers   June 22nd 2017, 12:20 am

How do I set up variables for helpers?

I am trying to make a damage thing that is based around a variable

(damage = var(5) + 20)

However it does not work. Doing it for another hitdef that is not attached to a helper however does. How come?
Back to top Go down
View user profile
Werewood

avatar

Posts : 5686
Join date : 2014-08-11

PostSubject: Re: Variables and helpers   June 22nd 2017, 7:56 am

Use Arrow : (damage = root, var(5) + 20)

Provided that var(5) is being added/set by the main non-MUGEN-Helper Player only.....

After your MUGEN Helper hits its MUGEN Enemies, use ParentVarAdd/ParentVarSet to change var(5) for its main non-MUGEN-Helper Player. Wink

MUGEN note: if your attacking MUGEN Helper is called by another MUGEN Helper which is called by the main non-MUGEN-Helper Player, then ParentVarAdd/ParentVarSet may not work for that.  You have to make extra MUGEN code in all "nested" MUGEN Helpers and their root owner (aka the main non-MUGEN-Helper Player) to get all those MUGEN Variables work in harmony.......... geek............ONLY IF MUGEN Engine had something like RootVarAdd/RootVarSet in the first place.... Razz .......why the heck not yet, Elecbyte!!!!!!!!!!!! bomb bomb bomb
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Mega_Man

avatar

Posts : 146
Join date : 2016-01-23

PostSubject: Re: Variables and helpers   June 22nd 2017, 11:43 am

borewood2013 wrote:
Use Arrow : (damage = root, var(5) + 20)

Provided that var(5) is being added/set by the main non-MUGEN-Helper Player only.....

After your MUGEN Helper hits its MUGEN Enemies, use ParentVarAdd/ParentVarSet to change var(5) for its main non-MUGEN-Helper Player. Wink

MUGEN note: if your attacking MUGEN Helper is called by another MUGEN Helper which is called by the main non-MUGEN-Helper Player, then ParentVarAdd/ParentVarSet may not work for that.  You have to make extra MUGEN code in all "nested" MUGEN Helpers and their root owner (aka the main non-MUGEN-Helper Player) to get all those MUGEN Variables work in harmony.......... geek............ONLY IF MUGEN Engine had something like RootVarAdd/RootVarSet in the first place.... Razz .......why the heck not yet, Elecbyte!!!!!!!!!!!! bomb bomb bomb

It's weird that variables do not work for helpers unless using the root which is towards the player character. But thanks for the help! I spend 30 minutes trying to work out the problem lol.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Variables and helpers   

Back to top Go down
 
Variables and helpers
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen :: Mugen Help-
Jump to: