Jump to content


Immunity to Control-Y


  • Please log in to reply
10 replies to this topic

#1 -Guest-

-Guest-
  • Guest

Posted 10 January 2005 - 12:26 PM

This may sound like a silly question.

How can I make an enemy immune to Ctrl-Y (like Demogorgon)? Is it possible to do this without giving the creature the minhp1.itm file (which really won't accomplish anything).

I want the creature to take absolutely no damage if control-y is used on him, but still be able to be killed.

#2 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 10 January 2005 - 12:50 PM

You use the scripting-action: AddCheatImmunity(CTRL+Y)

Seriously, you'll need the minhp1.itm to not get the creature killed. Then, you can just script his death, like Demogorgon.

Or, don't use cheats.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#3 Kish

Kish
  • Member
  • 1265 posts

Posted 10 January 2005 - 12:51 PM

It's kinda pointless to try to code for people who are going to be cheating, anyway.
Posted Image

http://www.moveon.org/fox/
"You are what you do. Choose again, and change."
--Cordelia Naismith Vorkosigan

#4 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 10 January 2005 - 12:54 PM

It's kinda pointless to try to code for people who are going to be cheating, anyway.

That's true, as well.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#5 Rastor

Rastor

    Yes, I really am a dragon. Yes, I am a jerk. Live with it.

  • Member
  • 2001 posts

Posted 10 January 2005 - 01:05 PM

You use the scripting-action: AddCheatImmunity(CTRL+Y)

Seriously, you'll need the minhp1.itm to not get the creature killed. Then, you can just script his death, like Demogorgon.

Or, don't use cheats.

View Post


The minhp1 item with a script doesn't really work. The script would be set to kill the creature when the hp is equal to 1 and Ctrl+Y will set the hp to 1 hence causing the script to trigger.

Making the creature 100% immune to cold might work since Ctrl+Y seems to do cold damage (at least, it uses the graphic for it). I'll do some testing and try to figure this out.
Home of Kitanya, Improved Asylum, more...

Posted Image

#6 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 10 January 2005 - 02:09 PM

The minhp1 item with a script doesn't really work.  The script would be set to kill the creature when the hp is equal to 1 and Ctrl+Y will set the hp to 1 hence causing the script to trigger.

Technically, it is possible to do script it, but there would be a few problems.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#7 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 10 January 2005 - 02:17 PM

Ctrl-Y can also kill trolls, and anyway if you do that (while pausing) on a minhp1 creature, she displays 6 messages "damage received".
This works only on TOB iirc though.

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#8 Potencius

Potencius
  • Member
  • 114 posts

Posted 11 January 2005 - 04:37 PM

I made an item that protected from CTRL-Y once...

Basically, you need protection from everything that could possibly be bad, along with MINHP1. Protect from instant death, normal death, (especially) chunk death, all damage types, all effects that modify main character stats (so they can't get set to 0).
The Glory of Istar - A Dragonlance Total Conversion

I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. - Umberto Eco

The truth of #meeting:
KenTeamBG: a/s/l
Deano: 14/f/in ur heart
* KenTeamBG it's getting hot so i remove my jacket
Daxziz: Oooh
* Echon, MaxTeamBG and Hlidskialf all get naked.
* SimDing0 has joined #meeting
SimDing0: Eew.
* SimDing0 has left #meeting
* KenTeamBG sets mode: +b SimDing0

#9 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 11 January 2005 - 04:38 PM

Eh, but that way the creature wouldn't be able to get hurt by anything...

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#10 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 11 January 2005 - 05:21 PM

Kensai Ryu claims he was able to make an enemy immune to ctrl-y, though I examined all files of that mod, and didn't find anything interesting :( . If you want to check it out by yourself, the mod is Ghrothgar (sp?), a subcomponent of the Deeper Shadows mod (a mod resurrection by Hlidskiaf)

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#11 Cuv

Cuv

    Area Maker (retired)

  • Modder
  • 925 posts

Posted 12 January 2005 - 02:41 PM

Kensai Ryu claims he was able to make an enemy immune to ctrl-y, though I examined all files of that mod, and didn't find anything interesting  :( . If you want to check it out by yourself, the mod is Ghrothgar (sp?), a subcomponent of the Deeper Shadows mod (a mod resurrection by Hlidskiaf)

View Post


IIRC, it was the creature file that was protected. Take a look at the CRE. I have a similar creature. In the first Iron Modder, I had an unkillable Referee. Check out his effects: IronCuvR.cre. It was overkill... but I believe he is totally unkillable :P

Cuv