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
» Street Fighter IV Legacy
by LESSARD Today at 4:52 pm

» Release Elektra 2.4 by Fede de 10
by malevka1 Today at 4:16 pm

» The Unofficial 2017 Halloween MMV Event (personal)!
by borewood2013 Today at 3:23 pm

» My old Halloween Stages release by OldGamer
by borewood2013 Today at 3:03 pm

» If you have played Resident Evil before then you must see this mini live-action Resident Evil (YouTube)!
by Doom Today at 3:01 pm

» If you have played Contra before then you must see this mini live-action Contra (YouTube)!
by borewood2013 Today at 2:53 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 : 145
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
borewood2013

avatar

Posts : 5021
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 : 145
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
 
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: