|
||
|
|
#1 (permalink) |
|
Twisted Intel
|
I was wondering, if it is possible to make creatures able to attack only evil players or npc would it not also be mutually benificial to the red comunity to have monsters that only attack blues or good players and npc's.
dug arround a little but i have a feeling this is out of my league any suggestions where to start looking? |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: In My Cold Cell
Age: 44
Posts: 1,848
|
Script an AI for it. Your best bet is a custom AI.
__________________
I'm waiting in my cold cell when the bell begins to chime Reflecting on my past life and it doesn't have much time. |
|
|
|
|
|
#4 (permalink) | |
|
Twisted Intel
|
ok ummm little unsure here is this what i am looking to edit/reverse dupe?
Quote:
|
|
|
|
|
|
|
#5 (permalink) |
|
[code:1]if (bCheckIt)
{ if ( acqType == FightMode.Agressor || acqType == FightMode.Evil || acqType == FightMode.Good ) { bCheckIt = false; for ( int a=0; a < m_Mobile.Aggressors.Count; a++ ) { if ( ((AggressorInfo)m_Mobile.Aggressors[a]).Attacke r == m ) { bCheckIt = true; } } if ( acqType == FightMode.Evil && !bCheckIt ) bCheckIt = ( m.Karma < 0 ); else if ( acqType == FightMode.Good && !bCheckIt ) bCheckIt = ( m.Karma > 0 ); } }[/code:1] |
|
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: In My Cold Cell
Age: 44
Posts: 1,848
|
Well I would do my own AI just in case I did not want this to be spread out through all creatures. Say I only wanted it for 10 creatures to behave this way and not all. Or for that matter these 10 attack evil and these other 10 attack good (not being the same creatures). Then what you suggest would not be right for my needs. In this case I would want a CustomBaseAI or CustomAI.
__________________
I'm waiting in my cold cell when the bell begins to chime Reflecting on my past life and it doesn't have much time. |
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: In My Cold Cell
Age: 44
Posts: 1,848
|
LOL. Yeah.
I at times just copy the current AI and modify it to my needs and give it another name in all the proper places.
__________________
I'm waiting in my cold cell when the bell begins to chime Reflecting on my past life and it doesn't have much time. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|