![]() |
AI For NPC Summon Skill use
I'm trying to make a summon skill that summons an NPC which will immediatly use one skill and then vanish. Will someone get me off on the right track or is there an AI script that is available for me to play around with and mod.
|
Code:
class 1 spawn_casts_1_spell : default_npcCode:
class spawn_casts_1_spell : default_npc |
Much appreciated evern. I always see you helping people! This should be great, thanks
|
And with that, use i.e:
Code:
push_event // myself |
hmm to not make another topic, is it possible to make an npc that does an skill as soon as its summoned on all the party members but it doesnt dissappear? something like the souless id think..
|
Sure, just don't put in a DeSpawn command. I'm not too sure if you can't simply let the summon use an affect_scope=party skill, since that'll save you some AI code. Otherwise take a look at funcs GetParty, Party_GetCount, Party_GetCreature, GetMemberOfParty and perhaps ShowSysMsgToParty2. I think you'll only use getmemberofparty and the membercount. :)
|
Quote:
|
| All times are GMT. The time now is 15:48. |