Page 2 of 2

Re: How to commit or test an added script?

Posted: Mon Dec 09, 2013 1:34 am
by Volgin
kjLotus wrote:you can print it and it'll come to the console
Nifty... so it comes back 5, though I only have 1 merit in it. It seems like it is executing this, thinking I'm not a PC? :

Code: Select all

if(m_PBaseEntity->objtype != TYPE_PC){
    	// not PC just give em max merits
    	lua_pushinteger(L, 5);
EDIT: Tried to add TYPE_PC as a parameter, didn't do anything, still came back as 5.

EDIT2: Went back to the MH and increased merit level to 2. Tried it again, came back as 10...should it be scaling by 5 for each merit...?

Re: How to commit or test an added script?

Posted: Mon Dec 09, 2013 2:45 am
by kjLotus
Volgin wrote:EDIT2: Went back to the MH and increased merit level to 2. Tried it again, came back as 10...should it be scaling by 5 for each merit...?
kjLotus wrote:and it returns "value" (from database, merit table) times the number of points put in.
"value" in the table is 5 for blade_bash. it should probably be 15, though, so you don't have to do any math (other than subtracting 15 for the first merit point)