new npc = a elf
- Freeyorp101
- Archivist Prime
- Posts: 766
- Joined: 04 Nov 2008, 09:17
- Location: New Zealand
Re: new npc = a elf
Since you'd be using an equip script for a bonus call anyway:
In the item_db:
In scripts.conf:
In a new file, npc/items/elf_hat.txt:
An additional range of 3 would be quite significant, btw, especially with some of the upcoming skill additions.
---Freeyorp
In the item_db:
Code: Select all
<id>, ElfHat, Elf Hat, 5, <other values here>, {}, { callfunc "ElfHatRangeBonus"; }
Code: Select all
// Item Functions
npc: npc/items/purification_potion.txt
npc: npc/items/elf_hat.txt
Code: Select all
function script ElfHatRangeBonus {
if (getequipid(equip_hand1) == 530 ||
getequipid(equip_hand1) == 545 ||
getequipid(equip_hand1) == 575 ||
getequipid(equip_hand1) == 1200)
bonus bAtkRange,3; // Value?
return;
}
---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
Re: new npc = a elf
Freeyorp101 wrote:Since you'd be using an equip script for a bonus call anyway:
In the item_db:In scripts.conf:Code: Select all
<id>, ElfHat, Elf Hat, 5, <other values here>, {}, { callfunc "ElfHatRangeBonus"; }
In a new file, npc/items/elf_hat.txt:Code: Select all
// Item Functions npc: npc/items/purification_potion.txt npc: npc/items/elf_hat.txt
An additional range of 3 would be quite significant, btw, especially with some of the upcoming skill additions.Code: Select all
function script ElfHatRangeBonus { if (getequipid(equip_hand1) == 530 || getequipid(equip_hand1) == 545 || getequipid(equip_hand1) == 575 || getequipid(equip_hand1) == 1200) bonus bAtkRange,3; // Value? return; }
---Freeyorp
Code: Select all
/ Item Functions
npc: npc/items/purification_potion.txt
npc: npc/items/elf_hat.txt
Code: Select all
function script ElfHatRangeBonus {
if (getequipid(equip_hand1) == 530 ||
getequipid(equip_hand1) == 545 ||
getequipid(equip_hand1) == 575 ||
getequipid(equip_hand1) == 1200)
bonus bAtkRange,3; // Value?
return;
- Freeyorp101
- Archivist Prime
- Posts: 766
- Joined: 04 Nov 2008, 09:17
- Location: New Zealand
Re: new npc = a elf
In that script it will only apply the range bonus when the player has a weapon equipped that matches one of those IDs. No penalty applied anywhere there, why would you want that?
---Freeyorp
---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
Re: new npc = a elf
but then what is the bonus item? what it means "bAtkRange, 3"? (This should be a bonus for the bow but what?)
- Freeyorp101
- Archivist Prime
- Posts: 766
- Joined: 04 Nov 2008, 09:17
- Location: New Zealand
Re: new npc = a elf
The example I posted would increase the attack range of the character by 3 if the character had a bow equipped, since that was mentioned elsewhere
You can replace the bonus there with anything else really; to be honest I think +3 range is rather excessive (especially when upcoming skill additions are taken into account)
---Freeyorp
The reason for my example was to show that you can include checks so that certain bonii can be made to only apply when these conditions are met; in this example a range bonus only when a bow is equippedKage wrote:We really need something that mostly or only benefits archers. If nothing else is suitable [...]
You can replace the bonus there with anything else really; to be honest I think +3 range is rather excessive (especially when upcoming skill additions are taken into account)
---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
-
- Novice
- Posts: 55
- Joined: 29 Oct 2009, 12:52
Re: new npc = a elf
Okay, I think I understand the code, and as for the bonus, that's why I put a question mark after it. I wasn't sure how much would be appropriate. But maybe we should put a speed bonus or something on too, because Elven Archers would be pretty good at speed shooting. It would make the hat more likely to be used by archers. Of course, I'm new to most of the RPG stuff, so I don't really know for sure.
Ingame: Kra'Toth
Re: new npc = a elf
I also disagree with a distance bonus. I would much rather see more speed or more power. Maybe a dex bonus of 2 and a agi bonus of 3.
<Kage_Jittai> ... are you saying I am elite
<thorbjorn> Yes.
<thorbjorn> Yes.
Re: new npc = a elf
Sorry to jump in on this thread, as I am NOT an artist at all, but the discussion of attributes is of interest to me.
There is an item already finished that was designed for archers... I know because I wrote up the concept for the item. I believe even most of the scripting was done for this too. Feel free to PM me if you want to know more... I don't want to spoil anything
Just please keep the above in mind while designing attributes for this hat!
There is an item already finished that was designed for archers... I know because I wrote up the concept for the item. I believe even most of the scripting was done for this too. Feel free to PM me if you want to know more... I don't want to spoil anything
Just please keep the above in mind while designing attributes for this hat!
Tiana - former GM of TMW
Forum avatar designed for me by my dear friend skipy
Forum avatar designed for me by my dear friend skipy
Re: new npc = a elf
By being on the forums everyone is already exposed to spoilers. Most people should understand this. Feel free to start a new thread. Keeping things in the dark doesn't help the content developers at all.Tiana wrote:Sorry to jump in on this thread, as I am NOT an artist at all, but the discussion of attributes is of interest to me.
There is an item already finished that was designed for archers... I know because I wrote up the concept for the item. I believe even most of the scripting was done for this too. Feel free to PM me if you want to know more... I don't want to spoil anything
Just please keep the above in mind while designing attributes for this hat!
<Kage_Jittai> ... are you saying I am elite
<thorbjorn> Yes.
<thorbjorn> Yes.
-
- Novice
- Posts: 55
- Joined: 29 Oct 2009, 12:52
Re: new npc = a elf
That would work too. Not as high a bonus, but it combines both, so it would be more useful.
Ingame: Kra'Toth
Re: new npc = a elf
I talked to Tiana, her item is already in git, and so I am say its closer to being done. I think they already have their script finalized (she said she has been working close with developers). She said the base level for her quest is 70. I think we should re aim our quest for level between 30 and 40. She told me the stat bonus that she desires for her item to have and I think it is suited for higher levels.AcnotAlpha wrote:That would work too. Not as high a bonus, but it combines both, so it would be more useful.
I think over all having a lower level archer head item and a higher level one would be good. So we need to look at the items. Maybe change snake tongues to cave snake tongues and replace dark crystals with pearls (maybe).
<Kage_Jittai> ... are you saying I am elite
<thorbjorn> Yes.
<thorbjorn> Yes.
-
- Novice
- Posts: 55
- Joined: 29 Oct 2009, 12:52
Re: new npc = a elf
Well, my comment was directed at your comment saying agi and dex would be better than range. I hadn't refreshed my page, and I didn't notice the other comments.
Ingame: Kra'Toth
Re: new npc = a elf
I think a level 30-40 can kill sea slimes?lien wrote:yes it could be good but the pearls I think it's too hard
<Kage_Jittai> ... are you saying I am elite
<thorbjorn> Yes.
<thorbjorn> Yes.