Jump to content

I need a Script


RaduTb

Recommended Posts

someone help me with me with a script for my mode please

I want a script that will automatically give you damage when you are in trigger area

I want to chance damage from 1-100 but i want to be per sec

apply 1 damage per second to all target in area trigger

 

TRIGGER ZONE

Ex: 1damage per second when you are in trigger zone

2damage per second when you are in trigger zone

... when you are in trigger zone

100damage per second when you are in trigger zone

I want to put triggers close to lava and give damage when you pass

so anyone have an idea how i make a script like that ?

Link to comment
Share on other sites

For the different levels of damage, you might use GetRandomPercent. You could create a whole bunch of different spells of varying strengths and have the script cast the correct one according to the virtual die roll.
Link to comment
Share on other sites

scn aaaFFTSCRIPT DAMAGE

 

; Self-activated, no trigger required

 

short activated

 

float fTrapDamage

 

begin gameMode

 

if activated == 0

 

; set up the damage values

set fTrapDamage to 2

 

 

set activated to 1

 

else

 

trapUpdate

 

endif

 

end

 

 

 

thanks whalecakes to advice me about frostfire glade and david

yeah ; set up the damage values

set fTrapDamage to 2-100-1000-999999

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...