ID:170808
 
In my game, Nightwatch, i'm wanting to make a special spell system. In this system, players will be able to customize spells, in addition to some basic ones.

Well, this is what I THOUGHT i wanted, until i tried to code the verb...

I have the variables set...

mob/player/var
magregen = 2 //Rate at which a player's MP returns
magresistance = 4 //Bonus to resisting a spell
//The rest are spell effect variables
spellmine
spellprojectile
spellcone
spelldamage
spellcost
spellpassive
spellactivate
spellseeking
spellprojectiledirection


I just need help with one thing... How i would make a menu that would show the effects that you could add/remove effects to a spell and change things such as damage and cost.

I know it's VERY rude to ask for coding, which is why i'm not. But I just need a push in the right direction.

Thx in advance...
~PAK
Pakbaum wrote:
I just need help with one thing... How i would make a menu that would show the effects that you could add/remove effects to a spell and change things such as damage and cost.

I honestly do want to help, but iI ahve no idea what you're talking about <_<. Can you please explain?
In response to Wizkidd0123
Wizkidd0123 wrote:
Pakbaum wrote:
I just need help with one thing... How i would make a menu that would show the effects that you could add/remove effects to a spell and change things such as damage and cost.

I honestly do want to help, but iI ahve no idea what you're talking about <_<. Can you please explain?

I think he wants a list of vars that can be changed for a certain spell.
In response to Lenox
I'd say you should use Associative Lists; Lummox JR has a good BYONDscape article on them; read it :).
In response to Wizkidd0123
BUMP

and I could'nt find the guide :( Could you link it or explain?
In response to Pakbaum
In response to Mega fart cannon
um.... what?

what does the Level-Up skills thing have to do with my magic system? i mean, besides leveling up the magic skills.
In response to Pakbaum
Eh? Oh, that was my topic, lol. Uhh.....Edit it...maybe? I dunno.
In response to Mega fart cannon
Well thats pretty rude to go off topic and try to lead others to your own post... but..
I think this is what he wants..
var/R = input("What do you want to change about your magic?")in list("spellmine","spellprojectile")
if(R == "spellmine")
(tab)spellmine = input ("What does this do?")//I could be more helpfull if I knew what the variables ment.. but.. I gotcha started, atleast I hope I did ^^;
//input tells you what to replace that variable with as a text string.

Sorry If I couldnt help ya.
In response to Flame Sage
:) That helps, and if it would help you, help me...

spellmine = A spell that's form is in that of a mine. When a mob comes within a few squares (determined by IQ) the spellmine "explodes"

spellprojectile = A spell that fires a projectile in the user's last moved direction.

spellseeking = A spell that follows a mob

spelldamage = A degree of how much physical damage you do to an enemy. The max damage you can set it at is determined by your IQ and whether you have enough MP

spellcost = A measurement of the toll the spell takes on your spirit. This will allow player's to reduce the cost of a spell , how much they can reduce it is determined by IQ

oh and I need a way to make it where they can store created spells. Basically when they enter the information for the spell and set the vars, it adds the spell (with effects of course) to a list (spellbook)

thx again
~PAK
In response to Pakbaum
well im only going to give you a few hints, not "the code".


* input("What number")as num
* SpellList += new /obj/Spell/BlazeBallOfDeathness
In response to Pakbaum
Pakbaum wrote:
I could'nt find the guide :( Could you link it or explain?

Sure: Learn to Love Associative Lists!