How to commit or test an added script?

Volgin
Posts: 32
Joined: Sun Oct 13, 2013 10:27 pm

Re: How to commit or test an added script?

Post by Volgin » Mon Dec 09, 2013 1:34 am

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...?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: How to commit or test an added script?

Post by kjLotus » Mon Dec 09, 2013 2:45 am

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)

Post Reply