The Forums Are Now Closed!

The content will remain as a historical reference, thank you.

New Effect Example Mod

By on June 1, 2010 3:23:39 PM from Demigod Forums Demigod Forums

I've working on adding new effects to the QoT Mod I've been developing. The final (successful) method took me a while to figure out, so I thought I'd post an example here so others wouldn't have to waste time replicating my failed methods. The method was exactly as DeadMG and others described in the thread on Hooking in Demigod. However I find that an actual example goes a long way towards understanding.

The effect: A new color for Bramble Shield


Download the mod at

The key problem I was having was finding the correct syntax for the Effect Template. The following is the contents of the modded  \lua\EffectTemplates.lua


Code: c++
  1. do
  2. EffectTemplates.Buff['Bramble02'] = {
  3.     Small =  {
  4.         '/mods/EffectExample/hook/effects/emitters/buffs/bramble/b_brm2_01_rings_h_emit.bp',
  5.         '/mods/EffectExample/hook/effects/emitters/buffs/bramble/b_brm2_01_rings_l_emit.bp',
  6.         },
  7.     Medium =  {
  8.         '/mods/EffectExample/hook/effects/emitters/buffs/bramble/b_brm2_03_medrings_h_emit.bp',
  9.         '/mods/EffectExample/hook/effects/emitters/buffs/bramble/b_brm2_03_medrings_l_emit.bp',
  10.         },
  11.     Large =  {
  12.         '/mods/EffectExample/hook/effects/emitters/buffs/bramble/b_brm2_05_lrgrings_h_emit.bp',
  13.         '/mods/EffectExample/hook/effects/emitters/buffs/bramble/b_brm2_05_lrgrings_l_emit.bp',
  14.         },        
  15.     Huge =  {
  16.         '/mods/EffectExample/hook/effects/emitters/buffs/bramble/b_brm2_07_hgerings_h_emit.bp',
  17.         '/mods/EffectExample/hook/effects/emitters/buffs/bramble/b_brm2_07_hgerings_l_emit.bp',
  18.         },
  19.     }
  20. end

Again it was fairly straightforward from the previous instructions, but exactly how to do it escaped me for quite some time.

+89 Karma | 1 Reply
June 1, 2010 3:33:04 PM from Demigod Forums Demigod Forums

Man.  I'll keep giving you karma.  But man.  Talk about a one man moding army.




Stardock Forums v1.0.0.0    #108435  walnut2   Server Load Time: 00:00:00.0000094   Page Render Time:

Stardock Magazine | Register | Online Privacy Policy | Terms of Use

Copyright ?? 2012 Stardock Entertainment and Gas Powered Games. Demigod is a trademark of Gas Powered Games. All rights reserved. All other trademarks and copyrights are the properties of their respective owners. Windows, the Windows Vista Start button and Xbox 360 are trademarks of the Microsoft group of companies, and 'Games for Windows' and the Windows Vista Start button logo are used under license from Microsoft. ?? 2012 Advanced Micro Devices, Inc. All rights reserved. AMD, the AMD Arrow logo and combinations thereof are trademarks of Advanced Micro Devices, Inc.