I'm having troubles finding a way to have the player/creatures regain 10% of their health and mana while defending. And while defending, I want only physical damage dealt to be reduced by 50%.
Announcement
Collapse
No announcement yet.
Defending script?
Collapse
X
-
Re: Defending script?
This sounds suspiciously like an RPGM3 question in the RPGM2 Forum!
Mana?
I have not seen 3 for a while and only picked up 2 again last week for the first time in MONTHS!
So I may be wrong.
Which Maker are you using?
This should be easily accomplished with 2.
Just use indirect effects or even change the enemy attack scripts.
I don't know about 3. I could do very little with that maker!
Good Luck with it.
Peace.Last edited by Rodak; 09-23-2006, 07:53 AM.
-
Re: Defending script?
It is indeed rpgm2 that I'm using. I'm use to calling "it" mana, not sure at the moment what it's called in this game.
My main problem is not knowing how to load up the characters stats in the "defense, luck, hp, max hp, ect" variables. I believe that's what i want to do.
Using a temp variable to find 10% of the max hp/mp, and add that to the current hp/mp.
And, i'd want it to work for enemies too. Not sure if they'd require a different "stat check" script, I just know some "enemy" scripts require things to be saved in different variables.
Comment
-
Re: Defending script?
This sounds like a job for Dungeon Warden's Advanced FAQ!
There is a command for loading "Member Info" so that should help.
It loads their stats into the variables as described in that Comprehensive little guide!
It is on this site somewhere! I think in the Tutorials section linked to from the Home Page.
I'lllook if yoy can't find it.
It's been too long for me to give any better answers!
Sorry.
Good Luck with it.
Peace.
Comment
-
Re: Defending script?
Go to Party Member Editor/Adv/Combat/Defend/Direct Effect
This is the direct effect for the defend command.
Now go to Adv/Result
Make a new event to go here. Call it something like HP + 10%. Make sure you change it to a system type event.
Now make a script to go in it.
Data: Member Info Load
Data: Variable: [Temp Variable0] = [Hit Points]
Data: Variable: [Hit Points] = [Hit Points] x 10
Data: Variable: [Hit Points] = [Hit Points] /(Divided by) 100
Data: Variable: [Hit Points] = [Hit Points] + [Temp Variable0]
Data: Member Info: Save
This should work, least it did for me when i tested it. Thetruecoolness taught me this little technique so be sure to thank him next time you see him.Last edited by Jeremy; 09-23-2006, 11:52 AM.
Comment
-
Re: Defending script?
Will do. Thanks all of you.Originally posted by Jeremy View PostGo to Party Member Editor/Adv/Combat/Defend/Direct Effect
This is the direct effect for the defend command.
Now go to Adv/Result
Make a new event to go here. Call it something like HP + 10%. Make sure you change it to a system type event.
Now make a script to go in it.
Data: Member Info Load
Data: Variable: [Temp Variable0] = [Hit Points]
Data: Variable: [Hit Points] = [Hit Points] x 10
Data: Variable: [Hit Points] = [Hit Points] /(Divided by) 100
Data: Variable: [Hit Points] = [Hit Points] + [Temp Variable0]
Data: Member Info: Save
This should work, least it did for me when i tested it. Thetruecoolness taught me this little technique so be sure to thank him next time you see him.
Comment



Comment