New arrow problem

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: New arrow problem

Post by msyblade »

Awesome news! a loooong project coming to fruition :)
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: New arrow problem

Post by Neikun »

I do believe I read that Petri was going to take a look at this sometime, too. -man that guy's got a full plate.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: New arrow problem

Post by LordGarth »

I tried all enchant arrow spells with new ammo type arrows and the spell goes off and uses energy but does not enchant the arrows and their is no error or crash.

I need the exact spell script for each enchant arrow. I would guess that the spell looks for specific ammo type and that is all that would have to be changed. Maybe code for each new arrow with each type of magic damage attached to it and what it reverts too when that arrow is shot.

LG
Dungeon Master and DOOM will live forever.
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: New arrow problem

Post by Diarmuid »

Rather than trying to reporgam the reverting mechanic, couldn't we, like Grimwold suggested, use the onProjectileHit hook to register if a, let's say, hunter arrow hits a monster? We could then store this somewhere in a table with a (monster_id, arrow) structure. Then, with the onDie hook, check for the number of arrows in the monster and destroy Broadhead arrows/respawn new arrows.

Let's say we shoot 2 hunter arrows, 1 fire arrow and 1 broadhead arrow at skeleton_warrior_1. When the monster dies, we'll get 4 broadhead arrows. As we registered 2 hunter arrows hitting it, upon it's death, the script searches the square for 2 broadhead arrows, destroys them, and respawns 2 hunter arrows.

Do you think it could work?
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: New arrow problem

Post by msyblade »

Omg.... i'm drinking a bit right now, so forgive me if i sound like a raving lunatic. But, garth. THIS IS SO MUCH SIMPLER THAN IT IS ABOUT TO BECOME. (sorry again.) Do not use "AmmoType" Arrow. EVAR! Ever! Use "AmmoType" Rudolph_the_red_nosed_reindeer if you have to. There is no hardcode to revert that to Broadhead arrow. (I THINK,) That is the only problem you are having trouble with. Make it "AmmoType" Rock, And nothing will ever revert, hardcoded. Did I explain that okay drunk?!
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: New arrow problem

Post by Diarmuid »

Yes, msyblade... but if we wish to keep the hardcoded reversion AND enchanting spells hardcoding AND make old/new arrows compatible with the same bows?
Post Reply