Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 21.05.2007, 20:33   #1
DeKoth
Архивный участник
 
Join Date: Apr 2006
Posts: 236
Default setting karma

Does anyone know off hand if there is a function in AI to set karma on a player?
DeKoth is offline  
Old 22.05.2007, 04:58   #2
Sdw
Архивный участник
 
Join Date: Sep 2005
Posts: 150
Default

Code:
 c1 = GetLastAttacker();
  i1 = c1.karma;
//DYING_ACTIONS_START
  if (Karma_cleaner == 1 && i1 > 0)
  {
  c1.karma = i1 - Karma_clean_amount;
  }
//DYING_ACTIONS_END
It was working back in C1 (Well, for removing karma), just modify it.
Sdw is offline  
Old 26.05.2007, 16:59   #3
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

in c4 you can just make
attacker.karma = ( attacker.karma + 500 ); (or - / *... whatever you like)
m4rk is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:07.