- function TowerInitHashtable takes integer Towertypid, string Towername, string TargetType, string Attacktype, string Effect, real damage, real Range, real Attackspeed returns nothing
- call SaveStr( udg_TowerInit, Towertypid, 0, Towername)
- call SaveStr( udg_TowerInit, Towertypid, 1, TargetType)
- call SaveStr( udg_TowerInit, Towertypid, 2, Attacktype)
- call SaveStr( udg_TowerInit, Towertypid, 3, Effect)
- call SaveStr( udg_TowerInit, Towertypid, 4, I2S( R2I( damage)))
- call SaveStr( udg_TowerInit, Towertypid, 5, I2S( R2I( Range)))
- call SaveStr( udg_TowerInit, Towertypid, 6, I2S( R2I( Attackspeed)) + "%")
- endfunction
- function InitTrig_TowerInit takes nothing returns nothing
- set udg_TowerInit = InitHashtable()
- //Example:
- // Towertypid Towername Targettyp Attacktyp Effect Dmg Range AS
- call TowerInitHashtable( 'blub', "PoisonTower", "Air and Ground", "Poison", "Does 5 poisondamage over 10 seconds", 666, 666, 666)
- endfunction
- Sprache wählen
- Style wählen
goto: