Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Scene_ItemBase problem
rural_monk
post Feb 1 2012, 01:06 PM
Post #1


Level 2
Group Icon

Group: Member
Posts: 20
Type: Musician
RM Skill: Advanced




I found myself a new problem. In the Scene_ItemBase script, theres this...
def user
$game_party.movable_members.max_by {|member| member.pha }
end

What on earth is the member.pha??? this is the only place i see that. no other script in ace OR vx has it. i also looked online, but no ruby tut sites i find seem to say anything about it. any help? thanks

ehh, sorry for the second post. but i figured it out. its just short for the pharmaceutical items. i should have looked a lil longer. but i gots a new prob. the part before that. "max_by". any ideas? happy.gif

This post has been edited by Kread-EX: Feb 1 2012, 01:24 PM


__________________________
The Rural Monk - the fresh smell of rum in the morning
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Feb 1 2012, 01:23 PM
Post #2


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




It's the pharmacology effect (raises effectiveness of items). It's typically given with traits. Unless in VX, Ace allows you to specify a certain medicine knowledge value and doesn't automatically doubles the item efficiency.

EDIT: Okay, you ninja'd me, so I merged your double post. Anyways, max_by returns the object with the highest value in the block. In this case, it returns the party member with the highest pharmacology value.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 12:17 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker