yo im about to make a spell system.......
there will be several options to make spell creations muuuch easier and muuuch more effective.... way more possibilities will be available
this is the part i'd like to show y'all and have comments about::
PROTOTYPE #1
it may look confusing, but once you grasp it you will find it being the most simple way to make animated spells... however what it will do is to spin around the player..... i cannot make a video otherwise i would have demonstrated it!!
i figured though, to make the very same thing there is an easier way. but not as customizable:
PROTOTYPE #2
E means East, which is the player centerpos, and that it is East means that it will start from the "letter" east of it (the "v")... How this will work is that it will cast the spell in the order of the "marks"... the dot (.) means the spell end there.
So e.g. this:
E>>v
.<<<
Will first do the spell to players x + 1 and then x + 2, then x + 3
and then as it is "v" it will go down, meaning it will be at x + 3 and y + 1
and then going to x + 2 and y + 1
then to x + 1 and y +1
and finally to y + 1 only (x + 0)
This would cause an infinite loop >< (I'm still thinking if I should let it be that way, and let the spell have an X amount of loop times, so we could make it "infinite" and then end it after e.g. 30 casts"
Any questions? You can request features for the spell system here too... It will be very powerful and this is only a minor part of it.
there will be several options to make spell creations muuuch easier and muuuch more effective.... way more possibilities will be available
this is the part i'd like to show y'all and have comments about::
PROTOTYPE #1
Lua:
-- create variables a-z and A-Z starting from 2
createVars(2, {"a","z"}, {"a","z",string.upper})
-- it will automatically create variables for you of the kind:
-- a = 3 b = 4 c = 5 d = 6 etc... until z and then from A to Z starting from about 28 or whatever it is
local area = {
{V,y,z,A,B,C,D},
{U,x,i,j,k,l,E},
{T,w,h,a,b,m,F},
{S,v,g,1,c,n,G},
{R,u,f,e,d,o,H},
{Q,t,s,r,q,p,I},
{P,O,N,M,L,K,J}
}
-- then on this one it will create a spell area using those variables... although we only use A-V here and not A-Z
it may look confusing, but once you grasp it you will find it being the most simple way to make animated spells... however what it will do is to spin around the player..... i cannot make a video otherwise i would have demonstrated it!!
i figured though, to make the very same thing there is an easier way. but not as customizable:
PROTOTYPE #2
Lua:
local area = [[
.>>>>>v
^^>>>vv
^^>>>vv
^^^Evvv
^^^<<vv
^^<<<<v
^<<<<<<
]]
E means East, which is the player centerpos, and that it is East means that it will start from the "letter" east of it (the "v")... How this will work is that it will cast the spell in the order of the "marks"... the dot (.) means the spell end there.
So e.g. this:
E>>v
.<<<
Will first do the spell to players x + 1 and then x + 2, then x + 3
and then as it is "v" it will go down, meaning it will be at x + 3 and y + 1
and then going to x + 2 and y + 1
then to x + 1 and y +1
and finally to y + 1 only (x + 0)
This would cause an infinite loop >< (I'm still thinking if I should let it be that way, and let the spell have an X amount of loop times, so we could make it "infinite" and then end it after e.g. 30 casts"
Any questions? You can request features for the spell system here too... It will be very powerful and this is only a minor part of it.
Last edited: