Hi,
I'm looking for suggestions and ideas regarding special attacks and how they relate to weapons.
In a game with bows, guns etc that use items like bullets or arrows, what would be the best way to have special attacks related to those items? The issue I can see is the hero still knowing those attacks (let's say "multiple shot") but they don't have the requisite item equipped.
I'm not using all the stats, so I was thinking of having ranged weapons set a stat to 1, and the attack will instead-chain to a non-ranged version if that particular stat is 0.
Cheers.
Question regarding weapons & skills
Moderators: marionline, SDHawk
Question regarding weapons & skills
vvight.wordpress.com
Would one attack per weapon be enough? You could use "When used as a weapon" in the "Edit Items" menu to assign one specific attack to one specific weapon.
Else, you could use a script before every battle that teaches your hero the attacks for his equipped weapon. That wouldn't override a standard fist attack, like the basic attack that costs nothing.
All the weapon specific attacks would have to be in one of the heros spell menus set as "Learned from an item".
Else, you could use a script before every battle that teaches your hero the attacks for his equipped weapon. That wouldn't override a standard fist attack, like the basic attack that costs nothing.
Code: Select all
# First, all weapon specific attacks have to be deleted (in this example attack number 22 to number 32)
variable (x)
for (x,22,32,1) do (
forget spell (hero,x)
)
# If the hero has item 141 equipped, he learns spell number 22
if (check equipment (hero,1) == 141) then (teach spell (hero,22))
Last edited by Bird on Thu Jul 11, 2019 6:45 pm, edited 1 time in total.
The problem arises when you have multiple heroes able to equip the same items. Eg a Bow may turn tag:bow on when equipped, but the game has no way of differentiating which hero is wielding it, therefore the tag unlocks those attacks for all heroes in the party.
I know the way forward , but it seems needlessly complicated for what I want to do. I might have the items increment a hidden stat and have the attacks check those, and chain to a different attack depending.
Which brings me to a feature request: When chaining attacks, can we have "=" for stat checks, as currently we only have "<" and ">".
I know the way forward , but it seems needlessly complicated for what I want to do. I might have the items increment a hidden stat and have the attacks check those, and chain to a different attack depending.
Which brings me to a feature request: When chaining attacks, can we have "=" for stat checks, as currently we only have "<" and ">".
vvight.wordpress.com