Mirage Source http://miragesource.net/forums/ |
|
General Hint http://miragesource.net/forums/viewtopic.php?f=201&t=1355 |
Page 1 of 11 |
Author: | William [ Wed Feb 14, 2007 9:56 pm ] |
Post subject: | General Hint |
Well I never thought of it, and I dont think you guys have either. The spells works depend on what type of spell you chosen. Generally it is these: Quote: Add HP
Add MP Add SP Sub HP Sub MP Sub SP Give Item Warp But skip them, instead in the Sub CastSpell, make it all into one big row, for example: Code: If Spell(SpellNum).TakeMP > 0 Then
Call SetPlayerMP(N, GetPlayerMP(N) - Spell(SpellNum).TakeMP) Call SendMP(N) End If That way a spell can have different effects, such as give HP and MP, or Subtract HP and SP. And all you really need to do is follow the example above, add a few new scrolls to frmSpellEditor and add the Spell(SpellNum).NewThing, with other words, add the needed variables into SpellRec. Easy piecy |
Author: | Obsidian [ Wed Feb 14, 2007 10:16 pm ] |
Post subject: | |
Minor correction... it doesn't use stuff like TakeMP (unless you add them... which may be a good idea if you want multiple effects, but a waste of memory if you declare them all and end up using just 1). You'd have to do something more like Code: Select Case Spell(SpellNum).Data1
Case SPELL_TYPE_ADDSP End Select Etc. |
Author: | William [ Wed Feb 14, 2007 10:18 pm ] |
Post subject: | |
Quote: And all you really need to do is follow the example above, add a few new scrolls to frmSpellEditor and add the Spell(SpellNum).NewThing, with other words, add the needed variables into SpellRec.
I stated that it didn't had them. But how does Switch work by the way? |
Author: | Obsidian [ Wed Feb 14, 2007 10:19 pm ] |
Post subject: | |
Oh okay. I didn't read it very thoroughly (obviously) |
Author: | William [ Wed Feb 14, 2007 10:21 pm ] |
Post subject: | |
edited my post above post, but you answered before. Quote: But how does Switch work by the way?
|
Author: | Dragoons Master [ Wed Feb 14, 2007 10:33 pm ] |
Post subject: | |
I think he meant to say Select Case(VB) and not Switch Case(C/C++). There is a Switch function on VB but it does other thing and not this. |
Author: | William [ Wed Feb 14, 2007 10:36 pm ] |
Post subject: | |
Yeah, I noticed the } |
Author: | Obsidian [ Wed Feb 14, 2007 11:37 pm ] |
Post subject: | |
Oh wow i didn't even notice. Sorry about that guys i'll edit it. I was too drunk to think overly clearly. |
Author: | William [ Thu Feb 15, 2007 12:04 am ] |
Post subject: | |
Obsidian wrote: but a waste of memory if you declare them all and end up using just 1
Well, that aint much at all. Since currently there are Data1, Data2 and Data3. And you just delete those 3 and add 3 new. And 3 new does not make a noticable difference. |
Author: | wanai [ Fri May 20, 2022 1:50 am ] |
Post subject: | Re: General Hint |
XVII |
Author: | wanai [ Fri May 20, 2022 1:51 am ] |
Post subject: | Re: General Hint |
142.5 |
Author: | wanai [ Fri May 20, 2022 1:52 am ] |
Post subject: | Re: General Hint |
Thes |
Author: | wanai [ Fri May 20, 2022 1:53 am ] |
Post subject: | Re: General Hint |
CHAP |
Author: | wanai [ Fri May 20, 2022 1:54 am ] |
Post subject: | Re: General Hint |
Begi |
Author: | wanai [ Fri May 20, 2022 1:55 am ] |
Post subject: | Re: General Hint |
Wind |
Author: | wanai [ Fri May 20, 2022 1:56 am ] |
Post subject: | Re: General Hint |
Wong |
Author: | wanai [ Fri May 20, 2022 1:58 am ] |
Post subject: | Re: General Hint |
Keen |
Author: | wanai [ Fri May 20, 2022 1:59 am ] |
Post subject: | Re: General Hint |
Henr |
Author: | wanai [ Fri May 20, 2022 2:00 am ] |
Post subject: | Re: General Hint |
Davi |
Author: | wanai [ Fri May 20, 2022 2:01 am ] |
Post subject: | Re: General Hint |
XVII |
Author: | wanai [ Fri May 20, 2022 2:02 am ] |
Post subject: | Re: General Hint |
Tesc |
Author: | wanai [ Fri May 20, 2022 2:03 am ] |
Post subject: | Re: General Hint |
Pens |
Page 1 of 11 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |