1. function TowerInitHashtable takes integer Towertypid, string Towername, string TargetType, string Attacktype, string Effect, real damage, real Range, real Attackspeed returns nothing
  2. call SaveStr( udg_TowerInit, Towertypid, 0, Towername)
  3. call SaveStr( udg_TowerInit, Towertypid, 1, TargetType)
  4. call SaveStr( udg_TowerInit, Towertypid, 2, Attacktype)
  5. call SaveStr( udg_TowerInit, Towertypid, 3, Effect)
  6. call SaveStr( udg_TowerInit, Towertypid, 4, I2S( R2I( damage)))
  7. call SaveStr( udg_TowerInit, Towertypid, 5, I2S( R2I( Range)))
  8. call SaveStr( udg_TowerInit, Towertypid, 6, I2S( R2I( Attackspeed)) + "%")
  9. endfunction
  10. function InitTrig_TowerInit takes nothing returns nothing
  11. set udg_TowerInit = InitHashtable()
  12. //Example:
  13. // Towertypid Towername Targettyp Attacktyp Effect Dmg Range AS
  14. call TowerInitHashtable( 'blub', "PoisonTower", "Air and Ground", "Poison", "Does 5 poisondamage over 10 seconds", 666, 666, 666)
  15. endfunction

Diesen Code in Standard-Formatierung anzeigen
goto:
Vergleichen mit :

Neuen Code Posten


Text-Kopier-Fenster