Putting the 'role' back in role-playing games since 2002.
Donate to Codex
Good Old Games
  • Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

Cast spell/use skill. Design question.

PompiPompi

Man with forever hair
Patron
Developer
Joined
Jul 22, 2019
Messages
3,009
RPG Wokedex
In a rogue like game. Or a tile based RPG.

How do you implement casting a spell or using a skill?

Specifically, how do you implement using a skill that enhance your next attack?
It means that after using the skill, you need to click an enemy, also it might depend on the weapon you use.

So let's say I have "Empower Sowrd", or something.
What happens if:
1) Character isn't holding a sword.
2) Character is holding a sword, but there is no enemy near by.
3) Character hold a sword, there is an enemy, but now character wants to walk instead or do something else?

Do you let the player cancel the skill and return the mana if he didn't use it?
 

Darth Canoli

Arcane
Joined
Jun 8, 2018
Messages
5,689
Location
Perched on a tree
1) Character isn't holding a sword.
2) Character is holding a sword, but there is no enemy near by.
3) Character hold a sword, there is an enemy, but now character wants to walk instead or do something else?

  1. Either you can't cast the spell or it's mana wasted.
  2. What about it works for the next attack with a sword (or at least within x turns then it fades away)
  3. Cf. 2
 

Norfleet

Moderator
Joined
Jun 3, 2005
Messages
12,250
1) Character isn't holding a sword.
Then either nothing happens and you waste the spell, or you are not allowed to cast it because it would not do anything. If there is absolutely no benefit whatsoever to simply burning mana for nothing, then you might just make it grayed out.

2) Character is holding a sword, but there is no enemy near by.
The skill will enhance his next attack with his sword. Either whenever he makes one, or until some limit on how long it lasts expires. Something like "enhances your next attack made within the next X turns". Maybe it lasts indefinitely and just stays there until he hits something. Maybe it glows and makes an ominous hum until he discharges it if he wants to hold it like that and have it give away his position until he does, if you want to somehow add a drawback to always preloading that attack.

3) Character hold a sword, there is an enemy, but now character wants to walk instead or do something else?
See above.

Do you let the player cancel the skill and return the mana if he didn't use it?
NO BACKSIES.
 

PompiPompi

Man with forever hair
Patron
Developer
Joined
Jul 22, 2019
Messages
3,009
RPG Wokedex
Ok so I made "Mark Skill".
So you click a skill it "marks" it, and then when you use it, it is being activated.
Some skills might be activated immadietly though.
This is in case of a melee attack.
I should also make that any other operation that is not activating the skill, should disable the marking.
Or you can disable marking with another click.

Here is a video:

 

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.
Back
Top Bottom