RaduTb Posted February 24, 2011 Share Posted February 24, 2011 someone help me with me with a script for my mode pleaseI 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 passso anyone have an idea how i make a script like that ? Link to comment Share on other sites More sharing options...
whalecakes Posted February 24, 2011 Share Posted February 24, 2011 You might want to just check out how this is done in vanilla, such as in the frostfire glade. Link to comment Share on other sites More sharing options...
David Brasher Posted February 25, 2011 Share Posted February 25, 2011 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 More sharing options...
RaduTb Posted February 27, 2011 Author Share Posted February 27, 2011 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 More sharing options...
Recommended Posts