Charm

Post Reply
Zkenpachi11
Posts: 16
Joined: Fri Apr 05, 2013 6:05 pm

Charm

Post by Zkenpachi11 » Wed Apr 09, 2014 2:49 pm

Does anyone know where charm is handled in the code?
Thanks

Edit: or anywhere? >.< lol

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

Re: Charm

Post by kjLotus » Wed Apr 09, 2014 5:47 pm

did you ctrl+f for charm?

Zkenpachi11
Posts: 16
Joined: Fri Apr 05, 2013 6:05 pm

Re: Charm

Post by Zkenpachi11 » Thu Apr 10, 2014 1:11 am

I don't know where charmability is handled? I can find stuff like if its charmed or like, jug pets and avatars/elementals but.. sorry if im just being dumb ;_;

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

Re: Charm

Post by kjLotus » Thu Apr 10, 2014 1:30 am

scripts/globals/abilities

Zkenpachi11
Posts: 16
Joined: Fri Apr 05, 2013 6:05 pm

Re: Charm

Post by Zkenpachi11 » Thu Apr 10, 2014 12:09 pm

Right, but I don't know what those functions do. Where are the definitions to the functions?
How do I look at what charmPet() is doing?

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

Re: Charm

Post by kjLotus » Thu Apr 10, 2014 1:52 pm

Zkenpachi11 wrote:Right, but I don't know what those functions do. Where are the definitions to the functions?
How do I look at what charmPet() is doing?
lua_baseentity.cpp

Zkenpachi11
Posts: 16
Joined: Fri Apr 05, 2013 6:05 pm

Re: Charm

Post by Zkenpachi11 » Thu Apr 10, 2014 2:20 pm

I'm sorry ;-;
but thank you

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: Charm

Post by demolish » Thu Apr 10, 2014 3:58 pm

Its generally easier to open DSGameServer.sln (in your darkstar/win32 folder)and Ctrl+Shift+F and search entire solution for whatever you're looking for in core such as lua bindings. e.g. search solution for getMJob(lua_State *L) where you see player:getMJob() in a lua script.
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

Zkenpachi11
Posts: 16
Joined: Fri Apr 05, 2013 6:05 pm

Re: Charm

Post by Zkenpachi11 » Thu Apr 10, 2014 9:03 pm

Oh thank you, I didn't know you could do that, I usually just open the project

Post Reply