![]() |
General Hint - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: General Hint (/showthread.php?tid=739) |
General Hint - William - 14-02-2007 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 HPBut skip them, instead in the Sub CastSpell, make it all into one big row, for example: Code: If Spell(SpellNum).TakeMP > 0 Then 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 ![]() - Obsidian - 14-02-2007 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 Etc. - William - 14-02-2007 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? - Obsidian - 14-02-2007 Oh okay. I didn't read it very thoroughly (obviously) - William - 14-02-2007 edited my post above post, but you answered before. Quote:But how does Switch work by the way? - Dragoons Master - 14-02-2007 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. - William - 14-02-2007 Yeah, I noticed the } ![]() - Obsidian - 14-02-2007 Oh wow i didn't even notice. Sorry about that guys i'll edit it. I was too drunk to think overly clearly. - William - 15-02-2007 Obsidian Wrote:but a waste of memory if you declare them all and end up using just 1Well, 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. |