new npc = a elf

All development of pixel art, maps and other graphics.


User avatar
Jaxad0127
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

Re: new npc = a elf

Post by Jaxad0127 »

What about something that gives a range bonus but greatly hinders a melee stat?
Image
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 766
Joined: 04 Nov 2008, 09:17
Location: New Zealand

Re: new npc = a elf

Post by Freeyorp101 »

Since you'd be using an equip script for a bonus call anyway:

In the item_db:

Code: Select all

<id>,	ElfHat,			Elf Hat,		5,	<other values here>, {},					{  callfunc "ElfHatRangeBonus"; }	
In scripts.conf:

Code: Select all

// Item Functions
npc: npc/items/purification_potion.txt
npc: npc/items/elf_hat.txt
In a new file, 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;
}
An additional range of 3 would be quite significant, btw, especially with some of the upcoming skill additions. :|


---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
User avatar
lien
Warrior
Warrior
Posts: 446
Joined: 30 Oct 2008, 08:59
Location: France

Re: new npc = a elf

Post by lien »

Freeyorp101 wrote:Since you'd be using an equip script for a bonus call anyway:

In the item_db:

Code: Select all

<id>,	ElfHat,			Elf Hat,		5,	<other values here>, {},					{  callfunc "ElfHatRangeBonus"; }	
In scripts.conf:

Code: Select all

// Item Functions
npc: npc/items/purification_potion.txt
npc: npc/items/elf_hat.txt
In a new file, 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;
}
An additional range of 3 would be quite significant, btw, especially with some of the upcoming skill additions. :|


---Freeyorp

Code: Select all

/ Item Functions
npc: npc/items/purification_potion.txt
npc: npc/items/elf_hat.txt
In a new file, 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;
in your code you said that it will make bonus or penalty if they wear ID (arc weapon )
Image
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 766
Joined: 04 Nov 2008, 09:17
Location: New Zealand

Re: new npc = a elf

Post by Freeyorp101 »

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
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
User avatar
lien
Warrior
Warrior
Posts: 446
Joined: 30 Oct 2008, 08:59
Location: France

Re: new npc = a elf

Post by lien »

but then what is the bonus item? what it means "bAtkRange, 3"? (This should be a bonus for the bow but what?)
Image
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 766
Joined: 04 Nov 2008, 09:17
Location: New Zealand

Re: new npc = a elf

Post by Freeyorp101 »

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

Kage wrote:We really need something that mostly or only benefits archers. If nothing else is suitable [...]
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 equipped

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
AcnotAlpha
Novice
Novice
Posts: 55
Joined: 29 Oct 2009, 12:52

Re: new npc = a elf

Post by AcnotAlpha »

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
User avatar
Kage
Manasource
Manasource
Posts: 929
Joined: 02 May 2009, 18:12

Re: new npc = a elf

Post by Kage »

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 :D
<thorbjorn> Yes. :P
User avatar
Tiana
TMW Adviser
TMW Adviser
Posts: 334
Joined: 30 Jan 2009, 00:49
Location: drifting to the abstract

Re: new npc = a elf

Post by Tiana »

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!
Tiana - former GM of TMW
Forum avatar designed for me by my dear friend skipy
User avatar
Kage
Manasource
Manasource
Posts: 929
Joined: 02 May 2009, 18:12

Re: new npc = a elf

Post by Kage »

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!
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.
<Kage_Jittai> ... are you saying I am elite :D
<thorbjorn> Yes. :P
AcnotAlpha
Novice
Novice
Posts: 55
Joined: 29 Oct 2009, 12:52

Re: new npc = a elf

Post by AcnotAlpha »

That would work too. Not as high a bonus, but it combines both, so it would be more useful.
Ingame: Kra'Toth
User avatar
Kage
Manasource
Manasource
Posts: 929
Joined: 02 May 2009, 18:12

Re: new npc = a elf

Post by Kage »

AcnotAlpha wrote:That would work too. Not as high a bonus, but it combines both, so it would be more useful.
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.

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 :D
<thorbjorn> Yes. :P
AcnotAlpha
Novice
Novice
Posts: 55
Joined: 29 Oct 2009, 12:52

Re: new npc = a elf

Post by AcnotAlpha »

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
User avatar
lien
Warrior
Warrior
Posts: 446
Joined: 30 Oct 2008, 08:59
Location: France

Re: new npc = a elf

Post by lien »

yes it could be good but the pearls I think it's too hard
Image
User avatar
Kage
Manasource
Manasource
Posts: 929
Joined: 02 May 2009, 18:12

Re: new npc = a elf

Post by Kage »

lien wrote:yes it could be good but the pearls I think it's too hard
I think a level 30-40 can kill sea slimes?
<Kage_Jittai> ... are you saying I am elite :D
<thorbjorn> Yes. :P
Post Reply