[DiscordArchive] appreciate it, quick question. in creature template, the creature i want to be able to get the kill
[DiscordArchive] appreciate it, quick question. in creature template, the creature i want to be able to get the kill
![[Image: unknown.png?ex=690c0eda&is=690abd5a&hm=8...8a1c2d46f&]](https://cdn.discordapp.com/attachments/415944535718494208/851837618651660288/unknown.png?ex=690c0eda&is=690abd5a&hm=813d4e5db4844242b8e7e0f532e853d84a0eae792edf39b349e0c8d8a1c2d46f&)
Archived author: Toggy • Posted: 2021-06-08T14:58:35.328000+00:00
Original source
appreciate it, quick question. in creature template, the creature i want to be able to get the kill and the player still gets credit under script name do i need to add "kill credit" from the end of the smartscript?
![[Image: unknown.png?ex=690c0eda&is=690abd5a&hm=8...8a1c2d46f&]](https://cdn.discordapp.com/attachments/415944535718494208/851837618651660288/unknown.png?ex=690c0eda&is=690abd5a&hm=813d4e5db4844242b8e7e0f532e853d84a0eae792edf39b349e0c8d8a1c2d46f&)
Archived author: Demonic • Posted: 2021-06-08T15:01:10.512000+00:00
Original source
Nah, this field isn't used for SAI, though you have to have a value "SmartAI" filled in the "AIName" collumn, else the NPC won't use the scripts no matter what.
Archived author: Demonic • Posted: 2021-06-08T15:09:31.065000+00:00
Original source
Target 2 Imho won't work, that's target for the enemy of the NPC in combat, I'd try using target SMART_TARGET_PLAYER_DISTANCE - 18
or
SMART_TARGET_CLOSEST_PLAYER - 21
Archived author: Toggy • Posted: 2021-06-08T15:10:09.791000+00:00
Original source
oh is the target for the kill credit?
Archived author: Demonic • Posted: 2021-06-08T15:11:34.501000+00:00
Original source
Yeah, the Target is for the receiver of the triggered action. So, if it's f.e. fireball, than you want the target to be "2" and the fireball gots casted on the current top aggro enemy.
Archived author: Demonic • Posted: 2021-06-08T15:11:43.975000+00:00
Original source
for the killcredit, I'd try the 21
Archived author: Demonic • Posted: 2021-06-08T15:13:07.547000+00:00
Original source
The events itself determines who / what triggers it, "target" determines who's on the receiving event.
Archived author: Toggy • Posted: 2021-06-08T15:14:10.672000+00:00
Original source
awesome that worked
Archived author: Demonic • Posted: 2021-06-08T15:14:38.738000+00:00
Original source
Cool, glad to hear that Saves me time with making a quest and then testing the AI
Archived author: Toggy • Posted: 2021-06-08T15:15:24.130000+00:00
Original source
the only issue with that i need to figure out is if theres another player standing in the area and is closer than the player with the quest