Mirage Source
My spells dont work, anyone wanna recode? XD - 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: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: My spells dont work, anyone wanna recode? XD (/showthread.php?tid=1843)



My spells dont work, anyone wanna recode? XD - katcode - 19-06-2008

lol i was working on this game for like 3 months, when i finally decided it had enough features to make maps and stuff, i discovered that SPELLS DONT WORK (Runtime error '380': Invalid property value.) lol and on the same time can anyone re-direct me to Visual Spells tutorial?

M3 6UcH N00b 1337 :lol:


Re: My spells dont work, anyone wanna recode? XD - Robin - 19-06-2008

You don't need to re-code, you just need to fix the bug.

Show us what line it errors on.


Re: My spells dont work, anyone wanna recode? XD - katcode - 19-06-2008

Robin Wrote:You don't need to re-code, you just need to fix the bug.

Show us what line it errors on.

no lines, it compiles perfectly and when i go to change the spells in the /editspell it gives me that error.


Re: My spells dont work, anyone wanna recode? XD - Rian - 19-06-2008

It doesn't give you errors when you run it in the IDE and type /editspell?


Re: My spells dont work, anyone wanna recode? XD - katcode - 19-06-2008

Sonire Wrote:It doesn't give you errors when you run it in the IDE and type /editspell?

i'll give that a try tommorow, my server host is offline and it's 11 PM *Warning off-topic* and tommorow is the last day of the senior students in my school, so i cant miss it XD


Re: My spells dont work, anyone wanna recode? XD - Rian - 19-06-2008

It's almost July and you're still in school Confusedhock:
Where are you from?


Re: My spells dont work, anyone wanna recode? XD - katcode - 21-06-2008

i found the bug.

in Public Sub SpellEditorInit()

Code:
frmSpellEditor.scrlLevelReq.value = Spell(EditorIndex).LevelReq

how do i fix this? and i still wanna be forwarded to a Visual Spells tutorial XD.


Re: My spells dont work, anyone wanna recode? XD - Robin - 21-06-2008

Replace with:

Code:
If Spell(EditorIndex).LevelReq > frmSpellEditor.scrlLevelReq.min then
    frmSpellEditor.scrlLevelReq.value = Spell(EditorIndex).LevelReq
else
    frmSpellEditor.scrlLevelReq.value = frmSpellEditor.scrlLevelReq.min
end if



Re: My spells dont work, anyone wanna recode? XD - Rian - 21-06-2008

And BTW, there is no visual spells tutorial Tongue


Re: My spells dont work, anyone wanna recode? XD - katcode - 22-06-2008

Robin Wrote:Replace with:

Code:
If Spell(EditorIndex).LevelReq > frmSpellEditor.scrlLevelReq.min then
    frmSpellEditor.scrlLevelReq.value = Spell(EditorIndex).LevelReq
else
    frmSpellEditor.scrlLevelReq.value = frmSpellEditor.scrlLevelReq.min
end if


Thanks robin, you saved my game Smile.