Eclipse - Free 2D Mmorpg Maker
March 11, 2010, 07:08:44 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Chat(2) Login Register  
 
 
   
 
collapse

* No Spam Or Websites

Refresh History
  • nickpop123: pmo is so lonly at night :O
    Today at 07:08:37 PM
  • Jungletoe: Theres a viking rpg now?
    Today at 07:06:21 PM
  • SHADERS: ya we can
    Today at 07:04:35 PM
  • ciocod: guess not
    Today at 07:04:10 PM
  • ciocod: can yall see me typing?
    Today at 07:03:44 PM
  • ciocod: whats goin on everyone?
    Today at 07:03:28 PM
  • Jungletoe: The wierd thing about a pirate rpg is trying to make variated tiles. Any suggestions? For example, life raft, bowies...
    Today at 06:55:57 PM
  • SHADERS: ice, ur not talkin funni anymor
    Today at 06:51:58 PM
  • XxshadowchrisXx: its not the end of the world
    Today at 06:48:11 PM
  • Robin: Holy Christ, I made a spelling mistake. Here*
    Today at 06:47:38 PM
  • Ice: am i robin?
    Today at 06:47:11 PM
  • Robin: And on that note, I'm going to bed. Nearing 3am.
    Today at 06:47:02 PM
  • Robin: Because you're hear bugging people.
    Today at 06:46:29 PM
  • Ice: ya why it say site may be buggy?
    Today at 06:45:15 PM
  • Jungletoe: You mean da site?
    Today at 06:44:19 PM
  • Ice: what happend?
    Today at 06:42:52 PM
  • Jungletoe: Im calling it Avast probably...
    Today at 06:42:41 PM
  • Jungletoe: I like the word cove...
    Today at 06:42:16 PM
  • Jungletoe: Yeah, im a big fan of those sayings (ie "Yohoho", "Arg", "Land Ho!", etc)
    Today at 06:41:40 PM
  • TDog: 7 seas, pirate cove.....
    Today at 06:40:43 PM

* Recent Topics

Count to 1,000,000! by Jna
[Today at 06:53:15 PM]


Eclipse Origins v1.0.1 by Robin
[Today at 06:42:54 PM]


Eclipse's Networking Manual by Godlord
[Today at 06:12:31 PM]


[WIP] Domination by Soul
[Today at 06:08:59 PM]


A Couple Of Questions by PainKiller
[Today at 06:07:57 PM]


[Real Life Picture Thread] by Tylian!
[Today at 06:06:38 PM]


My Server is offline for other users by Admiral Refuge
[Today at 05:21:26 PM]


Pokemon Cyrus Online 2010 by Wraith
[Today at 05:20:00 PM]


Viking's Monster Graphics by Ghost
[Today at 05:19:48 PM]


Changing and adding stats names by Admiral Refuge
[Today at 04:00:47 PM]


* Who's Online


Pages: 1 2 [3] 4 5 6
Site Author : Topic: Universal Spells for EE (hp-, hp+, mp-, mp+, sp-, sp+)  (Read 3419 times)
0 Members and 1 Guest are viewing this topic.
April 12, 2009, 08:18:29 AM
Forever Searching: Crystal Genesis
Veteran
Advanced Eclipser
*
User No : 2099
Posts: 1990
Location : Massena NY
I pity da fool!
  • View Profile
  • WWW
yeah i think that would have a bug... was just to get you started...

ok... lets analyze this logically... but there are many approaches to this. Lets take another.

you want to give a spell a range of 6.
so your target can not be any more than 6 away from you, wether you mean X axis or Y axis.

So lets make 2 variables.
Xmax = Player X + range
Xmin = Player X -range.
Now we need to see if Target X is in that set.
So we say...
If Target X is > Xmax and Target X is < Xmin then
  we abort spell.
Else if "the Y version" then
  we abort spell
Else
  We are ok.
end if.


Did that help?
Logged


Alpha Server:    Dev Server:
April 12, 2009, 08:26:54 AM
█☻█
Administrator
Epic Poster
*
User No : 440
Posts: 8020
Location : Delaware, USA
The Admiral.
  • View Profile
yeah i think that would have a bug... was just to get you started...

ok... lets analyze this logically... but there are many approaches to this. Lets take another.

you want to give a spell a range of 6.
so your target can not be any more than 6 away from you, wether you mean X axis or Y axis.

So lets make 2 variables.
Xmax = Player X + range
Xmin = Player X -range.
Now we need to see if Target X is in that set.
So we say...
If Target X is > Xmax and Target X is < Xmin then
  we abort spell.
Else if "the Y version" then
  we abort spell
Else
  We are ok.
end if.


Did that help?
Trust me m8, I took pseudocode in college.

You didn't have to explain that XD
Logged

I no longer offer engine support through PMs.  If you need help, please do so by posting in the correct board, thank you.
I also do not grant "Moderator" or "Administrator" requests; such a PM will be ignored.


Remember that marshmallow from Ghost Busters? marsh is a Canadian version of that.

http://www.touchofdeathforums.com/smf/index.php/topic,42647.0.html | Evolve 4.0 -- Evolving Simulaton! | Script Index - Almost ALL of Eclipse's ScriptsOkay, if you are not open-minded, then stop reading...
Guess what? Telekinesis, Pyrokinesis, Cryokinesis, Hydrokinesis, Electrokinesis, Psychokinesis, Telepathy, Empathy, Energy Balls, Energy Shields, Remote Viewing, and more IS POSSIBLE! If you have an open mind, and willing to TRY IT YOURSELF, then  read THIS FREE BOOK I've compiled myself!
Hello! I am French and I have found my happiness on your software.
April 12, 2009, 09:01:57 AM
Luner
Active Member
***
User No : 11066
Posts: 207
Location : Florida
  • View Profile
  • WWW
yeah i think that would have a bug... was just to get you started...

ok... lets analyze this logically... but there are many approaches to this. Lets take another.

you want to give a spell a range of 6.
so your target can not be any more than 6 away from you, wether you mean X axis or Y axis.

So lets make 2 variables.
Xmax = Player X + range
Xmin = Player X -range.
Now we need to see if Target X is in that set.
So we say...
If Target X is > Xmax and Target X is < Xmin then
  we abort spell.
Else if "the Y version" then
  we abort spell
Else
  We are ok.
end if.


Did that help?

OOOO, i get it! ill put that in as soon as i get homes. and ill tell u if i have any prob. :P
Logged

guess whos back.... i am...well...im not realy all that known....but yeah...im back...ty for reading this........i guess.....means alot.....im taking time out of my way to type this up...so yeah.... ~your welcome~ XD




Quote
"Give a man a fish, he will eat for a day. Teach a man to fish, he will eat for a lifetime"
-- This is a quote from ÅÐмiядζ ЯξƒµĢ€ - smartest thing ive ever heard...or read.
April 12, 2009, 09:39:51 AM
Forever Searching: Crystal Genesis
Veteran
Advanced Eclipser
*
User No : 2099
Posts: 1990
Location : Massena NY
I pity da fool!
  • View Profile
  • WWW
You will most likely run into trouble with targeting an npc vs a player... but if your spells work for both im sure you can figure it out.
Logged


Alpha Server:    Dev Server:
April 23, 2009, 05:35:53 AM
Member
**
User No : 11778
Posts: 54
  • View Profile
m.. sorry..
Call dmgspell(index, mp, val, ani, sound)
ani.. what to do if spell's animation big? (Big Spell)
Logged
April 23, 2009, 06:45:57 AM
Member
**
User No : 11778
Posts: 54
  • View Profile
m..
Logged
April 23, 2009, 06:47:18 AM
Donated
Active Member
*
User No : 10506
Posts: 118
Location : WV
Inside is good, Outside is bad.
  • View Profile
Basically script # is equal to case #.  So script 0 calls upon case 0, script 1 calls upon case 1,etc.
Logged
April 23, 2009, 07:24:21 AM
Member
**
User No : 11778
Posts: 54
  • View Profile
how do write?

Case 10
Sub dmgspell(index, 20, 2, 6, 15)
   If GetPlayerMP(index) >= mp Then
      Dim target
      Dim x
      Dim y
      Dim map
      map = GetPlayerMap(index)
      If GetPlayerTarget(index) < 0 Then
         target = GetPlayerTargetNpc(index)
         y = GetNpcY(map, target)
         x = GetNpcX(map, target)
         Call DamageNPC(index, target, val)
         Call SpellAnim(ani, map, x, y)
         Call PlaySound(index, sound)
      Else
         target = GetPlayerTarget(index)
         y = GetPlayerY(target)
         x = GetPlayerX(target)
         Call DamagePlayer(index, target, val)
         Call SpellAnim(ani, map, x, y)
         Call PlaySound(index, sound)
      End If
      mp = GetPlayerMP(index) - mp
      Call SetPlayerMP(index, mp)
   Else
      Call PlayerMsg(index, "You need " & mp & " MP to cast this

spell!", 1)
   End If
End Sub

ok?
Logged
April 23, 2009, 08:18:26 AM
Member
**
User No : 11778
Posts: 54
  • View Profile
help..
Logged
April 23, 2009, 08:43:06 AM
█☻█
Administrator
Epic Poster
*
User No : 440
Posts: 8020
Location : Delaware, USA
The Admiral.
  • View Profile
Foxx, take a look a Reply#11; I explained all this afew times now ;)
Logged

I no longer offer engine support through PMs.  If you need help, please do so by posting in the correct board, thank you.
I also do not grant "Moderator" or "Administrator" requests; such a PM will be ignored.


Remember that marshmallow from Ghost Busters? marsh is a Canadian version of that.

http://www.touchofdeathforums.com/smf/index.php/topic,42647.0.html | Evolve 4.0 -- Evolving Simulaton! | Script Index - Almost ALL of Eclipse's ScriptsOkay, if you are not open-minded, then stop reading...
Guess what? Telekinesis, Pyrokinesis, Cryokinesis, Hydrokinesis, Electrokinesis, Psychokinesis, Telepathy, Empathy, Energy Balls, Energy Shields, Remote Viewing, and more IS POSSIBLE! If you have an open mind, and willing to TRY IT YOURSELF, then  read THIS FREE BOOK I've compiled myself!
Hello! I am French and I have found my happiness on your software.
April 23, 2009, 09:28:34 AM
Member
**
User No : 11778
Posts: 54
  • View Profile
I have to change something in the script ... Now when I use the spell, the game hangs.. help..
Logged
April 23, 2009, 10:03:13 AM
█☻█
Administrator
Epic Poster
*
User No : 440
Posts: 8020
Location : Delaware, USA
The Admiral.
  • View Profile
I have to change something in the script ... Now when I use the spell, the game hangs.. help..
Can you post your Spell sub?
Logged

I no longer offer engine support through PMs.  If you need help, please do so by posting in the correct board, thank you.
I also do not grant "Moderator" or "Administrator" requests; such a PM will be ignored.


Remember that marshmallow from Ghost Busters? marsh is a Canadian version of that.

http://www.touchofdeathforums.com/smf/index.php/topic,42647.0.html | Evolve 4.0 -- Evolving Simulaton! | Script Index - Almost ALL of Eclipse's ScriptsOkay, if you are not open-minded, then stop reading...
Guess what? Telekinesis, Pyrokinesis, Cryokinesis, Hydrokinesis, Electrokinesis, Psychokinesis, Telepathy, Empathy, Energy Balls, Energy Shields, Remote Viewing, and more IS POSSIBLE! If you have an open mind, and willing to TRY IT YOURSELF, then  read THIS FREE BOOK I've compiled myself!
Hello! I am French and I have found my happiness on your software.
April 23, 2009, 10:50:49 AM
Luner
Active Member
***
User No : 11066
Posts: 207
Location : Florida
  • View Profile
  • WWW
Foxx, heres mine. 

' Executes whenever a player casts a scripted spell.
Sub ScriptedSpell(Index, Script)
   Select Case Script
      Case 0
         Call dmgspell(index, 5, 5, 2, "magic1.wav")
         Exit Sub

      Case 1
         Call dmgspell(index, 15, 15, 2,"magic1.wav")
         Exit Sub
   End Select
End Sub


( w/e is in color you change)

The Number in Blue is the MP you use to cast the spell

The Number inRed is the Damage the spell does ( my first one is 5, so it always does a 5 on monsters)

The Yellow is the sound it makes (self explanitory) :P

The Orange is the Animation, for some it works, for some it dosent, so put it in, hope it comes out. :P

there ya go.

(o, and a few bugs you should know: you can hit friendly/shop keeper/scripted ncps, and if theres no taret, it goes to coodinates 0,0 and well, no animation. :P)   

your welcome!!!!!  :cheesy:  :azn:



O, AND, this is a DMG spell, wich means it ATTACKS a NCP, just change it to curespell, warmthspell, burstspell, physchespell, or slowspell. i cant realy tell u what they all do, cuz i dident realy look at them at all yet. XD ill probubly work on the spells Last in my game, so... yeah, i help you as much as i could :P


O, AND, XD if any1 know how to make the attack, like random, instead of always 5, or always 15, that would be awsome to. :azn:
« Last Edit: April 23, 2009, 03:55:46 PM by Luner » Logged

guess whos back.... i am...well...im not realy all that known....but yeah...im back...ty for reading this........i guess.....means alot.....im taking time out of my way to type this up...so yeah.... ~your welcome~ XD




Quote
"Give a man a fish, he will eat for a day. Teach a man to fish, he will eat for a lifetime"
-- This is a quote from ÅÐмiядζ ЯξƒµĢ€ - smartest thing ive ever heard...or read.
April 23, 2009, 11:52:24 AM
█☻█
Administrator
Epic Poster
*
User No : 440
Posts: 8020
Location : Delaware, USA
The Admiral.
  • View Profile
O, AND, XD if any1 know how to make the attack, like random, instead of always 5, or always 15, that would be awsome to. :azn:
Replace:
Call dmgspell(index, 5, 5, 2, "magic1.wav")
With:
Call dmgspell(index, 5, Int(Rand(15, 5)), 2, "magic1.wav")

It will pick a random number between 15, and 5.
So yea, just replace the "val" with:
Int(Rand(high, low))
Haven't tested it, but I'm pretty sure it would work.
Logged

I no longer offer engine support through PMs.  If you need help, please do so by posting in the correct board, thank you.
I also do not grant "Moderator" or "Administrator" requests; such a PM will be ignored.


Remember that marshmallow from Ghost Busters? marsh is a Canadian version of that.

http://www.touchofdeathforums.com/smf/index.php/topic,42647.0.html | Evolve 4.0 -- Evolving Simulaton! | Script Index - Almost ALL of Eclipse's ScriptsOkay, if you are not open-minded, then stop reading...
Guess what? Telekinesis, Pyrokinesis, Cryokinesis, Hydrokinesis, Electrokinesis, Psychokinesis, Telepathy, Empathy, Energy Balls, Energy Shields, Remote Viewing, and more IS POSSIBLE! If you have an open mind, and willing to TRY IT YOURSELF, then  read THIS FREE BOOK I've compiled myself!
Hello! I am French and I have found my happiness on your software.
April 23, 2009, 11:55:04 AM
Luner
Active Member
***
User No : 11066
Posts: 207
Location : Florida
  • View Profile
  • WWW
AWSOME!

what about the animation?   :azn:
Logged

guess whos back.... i am...well...im not realy all that known....but yeah...im back...ty for reading this........i guess.....means alot.....im taking time out of my way to type this up...so yeah.... ~your welcome~ XD




Quote
"Give a man a fish, he will eat for a day. Teach a man to fish, he will eat for a lifetime"
-- This is a quote from ÅÐмiядζ ЯξƒµĢ€ - smartest thing ive ever heard...or read.
April 23, 2009, 12:14:25 PM
█☻█
Administrator
Epic Poster
*
User No : 440
Posts: 8020
Location : Delaware, USA
The Admiral.
  • View Profile
AWSOME!

what about the animation?   :azn:
The animation seems to work on certain clients, when it doesn't work on others; it's not a sadscript error, but a bug.

For instance, I've gotten the animations to work in my game, but I don't know how I did it.... Maybe I'm using another version of EE (eg, EE 2.7.3, when the one up on the main page, is EE 2.7.4)
Logged

I no longer offer engine support through PMs.  If you need help, please do so by posting in the correct board, thank you.
I also do not grant "Moderator" or "Administrator" requests; such a PM will be ignored.


Remember that marshmallow from Ghost Busters? marsh is a Canadian version of that.

http://www.touchofdeathforums.com/smf/index.php/topic,42647.0.html | Evolve 4.0 -- Evolving Simulaton! | Script Index - Almost ALL of Eclipse's ScriptsOkay, if you are not open-minded, then stop reading...
Guess what? Telekinesis, Pyrokinesis, Cryokinesis, Hydrokinesis, Electrokinesis, Psychokinesis, Telepathy, Empathy, Energy Balls, Energy Shields, Remote Viewing, and more IS POSSIBLE! If you have an open mind, and willing to TRY IT YOURSELF, then  read THIS FREE BOOK I've compiled myself!
Hello! I am French and I have found my happiness on your software.
April 23, 2009, 12:17:32 PM
Veteran
Advanced Eclipser
*
User No : 192
Posts: 1549
  • View Profile
the animation is easy, and fully working in his original script, the only thing he doesn't mention, is that it uses the animation from an existing spell...
Logged
April 23, 2009, 12:27:03 PM
█☻█
Administrator
Epic Poster
*
User No : 440
Posts: 8020
Location : Delaware, USA
The Admiral.
  • View Profile
the animation is easy, and fully working in his original script, the only thing he doesn't mention, is that it uses the animation from an existing spell...
Crap, I feel like a newb again -_-
So wait... The reason the spell animation works for me, is because I created another spell, and I'm using that animation or...?
Logged

I no longer offer engine support through PMs.  If you need help, please do so by posting in the correct board, thank you.
I also do not grant "Moderator" or "Administrator" requests; such a PM will be ignored.


Remember that marshmallow from Ghost Busters? marsh is a Canadian version of that.

http://www.touchofdeathforums.com/smf/index.php/topic,42647.0.html | Evolve 4.0 -- Evolving Simulaton! | Script Index - Almost ALL of Eclipse's ScriptsOkay, if you are not open-minded, then stop reading...
Guess what? Telekinesis, Pyrokinesis, Cryokinesis, Hydrokinesis, Electrokinesis, Psychokinesis, Telepathy, Empathy, Energy Balls, Energy Shields, Remote Viewing, and more IS POSSIBLE! If you have an open mind, and willing to TRY IT YOURSELF, then  read THIS FREE BOOK I've compiled myself!
Hello! I am French and I have found my happiness on your software.
April 23, 2009, 12:30:34 PM
Veteran
Advanced Eclipser
*
User No : 192
Posts: 1549
  • View Profile
pretty much...

I have a spell made normally(through /editspells) and have it with an animation... i name the spell "Animation 1" and use in spell index 1, then whenever i want to use Call SpellAnim(spellnum, map, x, y) i'd use that spell index for that animation...
Logged
April 23, 2009, 03:49:47 PM
Luner
Active Member
***
User No : 11066
Posts: 207
Location : Florida
  • View Profile
  • WWW
im not following.. XD what?
Logged

guess whos back.... i am...well...im not realy all that known....but yeah...im back...ty for reading this........i guess.....means alot.....im taking time out of my way to type this up...so yeah.... ~your welcome~ XD




Quote
"Give a man a fish, he will eat for a day. Teach a man to fish, he will eat for a lifetime"
-- This is a quote from ÅÐмiядζ ЯξƒµĢ€ - smartest thing ive ever heard...or read.
Pages: 1 2 [3] 4 5 6
 


Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
SimplePortal 2.3.1 © 2008-2009, SimplePortal
Valid XHTML 1.0! Valid CSS!
Page created in 0.383 seconds with 25 queries.