Instant death nodes
Pages
Author | Topic: Instant death nodes |
---|---|
Canned
Member # 8014
|
written Sunday, December 9 2007 11:09
Profile
How do you make them? I have looked and I can't find out how. I want to know how to do it for when the party attacks a certain friendly person. -------------------- I can transform into almost anything, but not sanity -Iffy Muffins n' Hell|Muffins n' Hell: The Muffins Are Back Again I like this image Not in your shed -We are still under developement, but help would be nice. By the way, most of the conversation goes in the Moderator forum, in case your confused. Everyone, just call me Iffy. Please. Posts: 1799 | Registered: Sunday, February 4 2007 08:00 |
Shock Trooper
Member # 10488
|
written Sunday, December 9 2007 11:25
Profile
Try something like this in the START_STATE: Or, if that doesn't work: (Maybe i<6 rather than i<4?) Note: this should kill the party any time someone commits a crime. If you want it to run when a specific creature dies, you will have to give that creature a custom script - which could simply be a copy of basicnpc - and put the code in the DEAD_STATE, minus the if part. [ Sunday, December 09, 2007 11:36: Message edited by: Celtic Minstrel ] Posts: 334 | Registered: Friday, September 14 2007 07:00 |
Infiltrator
Member # 5576
|
written Sunday, December 9 2007 11:31
Profile
Homepage
Yes, you will want 6 rather than 4 in that loop if there are any NPCs attached to the party whom you want to kill. kill_char(1000,...) should do all that neatly for you though. I will comment that as a player, I hate use of this tactic to prevent the party from doing things the designer doesn't want; anything else is preferable to me. I'd personally prefer this to be used only as a last resort. -------------------- Überraschung des Dosenöffners! "On guard, you musty sofa!" Posts: 627 | Registered: Monday, March 7 2005 08:00 |
Law Bringer
Member # 4153
|
written Sunday, December 9 2007 11:35
Profile
Homepage
If it's a friendly, important character, I can see why this is necessary. If it's just your personal cameo in your scenario, Iffy, then I'd say leave it alone and just make the character be level 100. -------------------- TM: "I want BoA to grow. Evolve where the food ladder has rungs to be reached." Gamble with Gaea, and she eats your dice. Posts: 4130 | Registered: Friday, March 26 2004 08:00 |
Canned
Member # 8014
|
written Sunday, December 9 2007 11:42
Profile
Yes, Iffy is level 100. But if he is attacked, he will be hostile. And if he is hostile, the scenario might be impossible. So an instant death node makes sense. -------------------- I can transform into almost anything, but not sanity -Iffy Muffins n' Hell|Muffins n' Hell: The Muffins Are Back Again I like this image Not in your shed -We are still under developement, but help would be nice. By the way, most of the conversation goes in the Moderator forum, in case your confused. Everyone, just call me Iffy. Please. Posts: 1799 | Registered: Sunday, February 4 2007 08:00 |
Lifecrafter
Member # 7557
|
written Sunday, December 9 2007 12:04
Profile
Level 100 means little, a GOD firebolt will blast a fire-resistant 2000HP level 100 character into dust with one hit. Then again thats what a GOD party is meant to be able to do but... *Kicks self repeatedly* Err um Ah yes As a script ignorant I'd like to know, would it be possible to have a script that would activate a death node that killed a PC if that script was set to kill the PC if his name was thus. Posts: 942 | Registered: Sunday, October 8 2006 07:00 |
Shaper
Member # 7472
|
written Sunday, December 9 2007 12:09
Profile
Homepage
quote:Wrong state. The kill node needs to be in the START_STATE, not INIT_STATE. And also make sure to define the variable i. Otherwise, it thinks it's a mistake. Nija - It depends on where the fire resistance comes from. If 25% fire resistance is coded into the data script for that creature, it'll always block at least 25% of incoming fire damage. Same applies to Ice, Magic, Mental, Poison/Acid, and Physical. So if one sets Magic resistance in the data script to 100%, that creature becomes completely immune to energy-based attacks, god party or not. [ Sunday, December 09, 2007 12:18: Message edited by: Nioca ] -------------------- Nioca's Citadel - A resource for BoA graphics and scripts, as well as my scenarios. In Last Hope's Light RP - The end is near... Posts: 2686 | Registered: Friday, September 8 2006 07:00 |
Infiltrator
Member # 5576
|
written Sunday, December 9 2007 12:23
Profile
Homepage
You'll also want to use Alint to check your scripts if you do much scripting. It's far more convenient to know where there are errors before you load the script in the game and it crashes. It'll help you catch things like the undefined variable sooner and more painlessly. -------------------- Überraschung des Dosenöffners! "On guard, you musty sofa!" Posts: 627 | Registered: Monday, March 7 2005 08:00 |
Law Bringer
Member # 4153
|
written Sunday, December 9 2007 12:34
Profile
Homepage
quote:Yes, god parties break scenarios and we know this. Everybody knows this. quote:...so you're asking if a script could kill PCs with a certain name? I'm afraid I don't understand what you were trying to say (nor do I understand why you'd do this). -------------------- TM: "I want BoA to grow. Evolve where the food ladder has rungs to be reached." Gamble with Gaea, and she eats your dice. Posts: 4130 | Registered: Friday, March 26 2004 08:00 |
Agent
Member # 8030
|
written Sunday, December 9 2007 12:42
Profile
Homepage
Alint doesn't work on older platforms. I'm forced to do it the old-fashioned way. -------------------- "There's a hole in the bucket, dear Excalibur, dear Excalibur..." Posts: 1384 | Registered: Tuesday, February 6 2007 08:00 |
Infiltrator
Member # 5576
|
written Sunday, December 9 2007 12:50
Profile
Homepage
Not meaning to sidetrack the topic, but what platforms are you refering to, Excalibur? Classic Mac OS? -------------------- Überraschung des Dosenöffners! "On guard, you musty sofa!" Posts: 627 | Registered: Monday, March 7 2005 08:00 |
Lifecrafter
Member # 6193
|
written Sunday, December 9 2007 13:46
Profile
Homepage
kill_char(1000,3,0) would work just as well as looping through the party. I'd do it that way. And you can get by fine without Alint, I never use it (command line is teh suk) and I know TM doesn't either, although he doesn't have that excuse. -------------------- "NOW PASS ME MY BOOTS. I HAVE AN APPOINTMENT WITH A FACE." -Nikki Frostbite: Get It While It's...... Hot? Posts: 900 | Registered: Monday, August 8 2005 07:00 |
Agent
Member # 5814
|
written Sunday, December 9 2007 14:35
Profile
Right now, the way the script works is if the party commits any crime, they will be killed. If the effect is specific only to the hostility of a character, though, you may want to use the character's hostility as a trigger. -------------------- It's just trying to say hi! Posts: 1115 | Registered: Sunday, May 15 2005 07:00 |
Lifecrafter
Member # 6193
|
written Sunday, December 9 2007 14:48
Profile
Homepage
Well in this case it amounts to the same thing, because if they commit any crime the town (and thus that NPC) will go hostile. But yeah, if you want to auto-kill for attacking an important NPC, you should probably put the autokill code in that NPCs death state. There are basicnpc edits that call town states on death, I'd advise using one so you don't have to write a whole new custom script for said creature (Scripts that add functionality to basicnpc are a good thing to have so you can do simple tasks without writing whole new scripts.) -------------------- "NOW PASS ME MY BOOTS. I HAVE AN APPOINTMENT WITH A FACE." -Nikki Frostbite: Get It While It's...... Hot? Posts: 900 | Registered: Monday, August 8 2005 07:00 |
Canned
Member # 8014
|
written Sunday, December 9 2007 15:19
Profile
Well, what I want is a message to appear right before death. How is that done? And I am really confused with this. -------------------- I can transform into almost anything, but not sanity -Iffy Muffins n' Hell|Muffins n' Hell: The Muffins Are Back Again I like this image Not in your shed -We are still under developement, but help would be nice. By the way, most of the conversation goes in the Moderator forum, in case your confused. Everyone, just call me Iffy. Please. Posts: 1799 | Registered: Sunday, February 4 2007 08:00 |
Infiltrator
Member # 5576
|
written Sunday, December 9 2007 16:15
Profile
Homepage
Just put a message_dialog call with your message right before the death code. The message will be displayed, then the party will die. -------------------- Überraschung des Dosenöffners! "On guard, you musty sofa!" Posts: 627 | Registered: Monday, March 7 2005 08:00 |
Shock Trooper
Member # 10488
|
written Sunday, December 9 2007 17:48
Profile
Okay. If it's only for when you kill a specific character, go into the Blades of Avernum Files folder, and copy basicnpc.txt into your scenario's folder. Rename it Iffy.txt (or whatever you like). Open it up, and replace the DEAD_STATE with this: Then set Iffy as your character's script. That should work. (Note: I omitted the set SDF code because it won't do anything if you die right after.) You could probably also alter it to be triggered when you attack the character, but I'm not sure how you would do that. It would still require the Iffy.txt though. [ Sunday, December 09, 2007 17:49: Message edited by: Celtic Minstrel ] Posts: 334 | Registered: Friday, September 14 2007 07:00 |
Shaper
Member # 3442
|
written Monday, December 10 2007 00:53
Profile
Homepage
quote:As a designer, I find that kill nodes are bad, too. It makes beta-testers cry. Of course, if you try to kill the uber-boss guy, you're not going to get off lightly, but still. I like to put in a warning, and then boot the party out of the scenario, with a end_scenario(2) call - in game, I'd say they were exiled from town or whatever. Much nicer, and the player doesn't have to reload. quote:I've used it once or twice. I think I was getting weird errors in TV, and I couldn't work out why. Turns out setting memory cells above the expected limits is bad. -------------------- Nikki's Nook - bigger than Jesus? Posts: 2864 | Registered: Monday, September 8 2003 07:00 |
Canned
Member # 8014
|
written Tuesday, December 11 2007 11:06
Profile
It doesn't take that long to reload. Also, Iffy is the only one in the cave. So a message then death when you attack him would be okay without making a custom creature script. Edit -are you guys glad that I am finally making Muffins n' Hell? [ Tuesday, December 11, 2007 11:08: Message edited by: Iffy ] -------------------- I can transform into almost anything, but not sanity -Iffy Muffins n' Hell|Muffins n' Hell: The Muffins Are Back Again I like this image Not in your shed -We are still under developement, but help would be nice. By the way, most of the conversation goes in the Moderator forum, in case your confused. Everyone, just call me Iffy. Please. Posts: 1799 | Registered: Sunday, February 4 2007 08:00 |
Shaper
Member # 7472
|
written Tuesday, December 11 2007 13:57
Profile
Homepage
So long as it doesn't amount to Foul Hordes version 2, then yes, I'm glad. Because it means not only will we have another scenario in our community, but it may just lead you onto bigger and better scenarios. As the wise Creator said: quote: -------------------- Nioca's Citadel - A resource for BoA graphics and scripts, as well as my scenarios. In Last Hope's Light RP - The end is near... Posts: 2686 | Registered: Friday, September 8 2006 07:00 |
Lifecrafter
Member # 6193
|
written Tuesday, December 11 2007 14:27
Profile
Homepage
I'll second what Nioca said (and what the rest of the Creator's article said as well.) -------------------- "NOW PASS ME MY BOOTS. I HAVE AN APPOINTMENT WITH A FACE." -Nikki Frostbite: Get It While It's...... Hot? Posts: 900 | Registered: Monday, August 8 2005 07:00 |
Law Bringer
Member # 4153
|
written Tuesday, December 11 2007 15:10
Profile
Homepage
I'm glad to see it happening, 'cause it means you're learning Avernumscript. And that means better scenarios down the road, as others have said. As for the specific content of the scenario, well, we'll see... I'm not exactly expecting Pulitzer-winning storytelling here. -------------------- TM: "I want BoA to grow. Evolve where the food ladder has rungs to be reached." Gamble with Gaea, and she eats your dice. Posts: 4130 | Registered: Friday, March 26 2004 08:00 |
Agent
Member # 8030
|
written Tuesday, December 11 2007 17:25
Profile
Homepage
quote:I...don't know. -------------------- "There's a hole in the bucket, dear Excalibur, dear Excalibur..." Posts: 1384 | Registered: Tuesday, February 6 2007 08:00 |
Canned
Member # 8014
|
written Sunday, January 6 2008 11:23
Profile
quote:Uh, what do you mean by "define the variable i"? -------------------- Don't judge a sentence until you know all the words. Muffins n' Hell|Muffins n' Hell: The Muffins Are Back Again Muffins n' Hell: The End is Near Not in your shed -We are sort of done. Helpful criticism is welcome. Everyone, just call me Iffy. Please. Be grateful you have your unsellabe trowels -Goldenking Just so you know, I am working on Muffins n' Hell the scenario. Posts: 1799 | Registered: Sunday, February 4 2007 08:00 |
The Establishment
Member # 6
|
written Sunday, January 6 2008 11:35
Profile
Take a look at any of Jeff's scenario town scripts. Near the top, you will see a section for variables. You will often see: int i, j short choice "i", "j", and "choice" are variables that are used throughout the script. You may define your own. Read the section on it in the documentation. If this gives you trouble, read up on the BASIC programming language. It should give you a basic understanding of the variable. -------------------- Your flower power is no match for my glower power! Posts: 3726 | Registered: Tuesday, September 18 2001 07:00 |