The Mugen Multiverse
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome!!! - Bienvenidos!!! - ( We hope you will get involved in the MMV Community which is dedicated to having fun with Mugen ) - Bienvenidos!!! - Welcome!!!
 
PortalHomeFAQMemberlistLatest imagesUsergroupsSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Meet Women Ready for Fun Tonight in Your Town
Variables and helpers Emptyby GTFoxN6Y Yesterday at 3:26 pm

» Lizard WIP
Variables and helpers Emptyby RenatoNat.J Yesterday at 2:51 pm

» Zatara The Master Magician WIP by RenatoNato
Variables and helpers Emptyby RenatoNat.J Yesterday at 1:12 pm

» MMV Halloween Event 2024 - Mandarin by McCready, Buyog, wil.li.an & Candido159 Release
Variables and helpers Emptyby spidergoku Yesterday at 12:08 pm

Special Features at MMV




Chat on MMV w/ Discord

Video Content Creation Reference
Search
 
 

Display results as :
 
Rechercher Advanced Search

 

 Variables and helpers

Go down 
2 posters
AuthorMessage
Mega_Man

Mega_Man


Posts : 148
Join date : 2016-01-23

Variables and helpers Empty
PostSubject: Variables and helpers   Variables and helpers EmptyJune 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
Werewood

Werewood


Posts : 5691
Join date : 2014-08-11

Variables and helpers Empty
PostSubject: Re: Variables and helpers   Variables and helpers EmptyJune 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..... Variables and helpers 3876111886

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
https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Mega_Man

Mega_Man


Posts : 148
Join date : 2016-01-23

Variables and helpers Empty
PostSubject: Re: Variables and helpers   Variables and helpers EmptyJune 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..... Variables and helpers 3876111886

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
Sponsored content





Variables and helpers Empty
PostSubject: Re: Variables and helpers   Variables and helpers Empty

Back to top Go down
 
Variables and helpers
Back to top 
Page 1 of 1
 Similar topics
-
» MVC Helpers almost to run for the end
» MVC 1 HELPERS IN MUGEN 2D
» Infinite jump against permenant helpers problem
» Comboing for helpers?
» Helpers en "Projectil"

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