Author Topic: Howdo I make a creature die as action in a dialog?  (Read 9600 times)

0 Members and 1 Guest are viewing this topic.

Offline Dunadar

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Email
Howdo I make a creature die as action in a dialog?
« on: July 02, 2013, 12:22:39 AM »
June 27th, 2001, 7:28pm

What is the action do make a creature die in a dialog ?

Offline darkholy

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
  • The dark one cometh
    • View Profile
    • Email
Re: Howdo I make a creature die as action in a dialog
« Reply #1 on: July 03, 2013, 04:43:10 AM »
June 27th, 2001, 7:57pm

I believe you just put "Kill("creature")" in the action box (assuming you are using something like Near Infinity to edit the dialog.)
All shall perish by my blade

Offline Kensai_Ryu

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
  • Gender: Male
    • AOL Instant Messenger - AstroBouncer
    • View Profile
    • Infinity Engine Enemy AI Scriptors Council
    • Email
Re: Howdo I make a creature die as action in a dialog
« Reply #2 on: July 04, 2013, 08:29:58 AM »
June 28th, 2001, 4:07am

You can use Kill("Object"). Or DestroySelf() to kill whoever is running the dialog, to name a few ways.

With "Object" being from object.ids (such as player1) or a scriptname(deathvariable like Minsc or ORC01).

Offline Max

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Howdo I make a creature die as action in a dialog
« Reply #3 on: July 05, 2013, 12:16:39 PM »
June 28th, 2001, 5:31am

It depends... DestroySelf() and Kill(Myself) are actually very different...

Kill(Myself) will write the creature's death variable into the save game, while DestroySelf() will just remove the creature from the game.

Another command that can be used is ApplyDamagePercent(Object,100,DMGTYPE).

Offline Inferno

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
    • Email
Re: Howdo I make a creature die as action in a dialog
« Reply #4 on: July 05, 2013, 12:20:00 PM »
June 28th, 2001, 6:08am

Another major difernence is that when a creature dies via Kill() it is still treated as a identifiable object within the game world, also its script appears to have some sway over the game world. when DestroySelf() is used the creature is totally removed from the game world so it is no longer a object.

Offline Dunadar

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Email
Howdo I make a
« Reply #5 on: July 05, 2013, 12:20:41 PM »
June 28th, 2001, 7:42am

Thank you for the replies but which script should I use if I want to see the creature die in front of me, and never see it again when I return to the same area in the same game ?

Offline akshel

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Email
Re: Howdo I make a creature die as action in a dialog
« Reply #6 on: July 05, 2013, 12:20:42 PM »
June 28th, 2001, 8:31am

I'd use the damage... most realistic and you might even get gibs... although I think there's an effect for that.  DestroySelf would not be what you're after, as the creature just disappears suddenly; no death.  So it's either Kill or the damage... either way the creature won't return.

Offline Dunadar

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Email
Re: Howdo I make a creature die as action in a dialog
« Reply #7 on: July 05, 2013, 12:20:43 PM »
June 28th, 2001, 9:06am

I tried to add this script to the action but it didn't work :


ApplyDamagePercent(myself,100,0)

Offline Max

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Howdo I make a creature die as action in a dia...
« Reply #8 on: July 05, 2013, 12:20:44 PM »
June 28th, 2001, 1:56pm

change the 0 to something in DMGTYPE.ids. make the "m" in myself capitalized.

It should look something like this...


Code: [Select]
Code:
ApplyDamagePercent(Myself,100,ELECTRICITY)


Another useful group of actions would be combining Kill() abnd DestroySelf()...

You could try using


Code: [Select]
Code:
   Kill(Myself)
   Wait(1)
   DestroySelf()

Offline KingDutka

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
  • Gender: Male
    • AOL Instant Messenger - KingDutka
    • View Profile
    • Email
Re: Howdo I make a creature die as action in a dialog
« Reply #9 on: July 05, 2013, 12:20:45 PM »
July 14th, 2001, 8:56am

1 damage type not listed is DEAFULT
eg.:
AddDamagePercent(Myself,100,DEFAULT)

Offline Vaskez

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
  • Gender: Male
    • ICQ Messenger - 102606352
    • View Profile
Re: Howdo I make a creature die as action in a dialog
« Reply #10 on: July 05, 2013, 12:20:46 PM »
July 14th, 2001, 9:31am

LOL Dutka applying the knowledge u gained about 5 minutes ago