Originally Posted by
snakics
I will explain pve for you?
There are 3 base events.. Boss hp, time, and player position.
When you reach boss script starts:
---> If boss requires time some script will start timer() class or method.
-->if boss requires hp status ******** *** *** **** ** ****.
--> Position for spells will use spell location and Pythagorean for 3d or 2d if you fighjt on plane..
Lets guess boss got timer () and hp() check
---> Attack start timer and event cycle(while, for or do while) for event checking.
---> then script works like
---------------->If(boss_Hp>1000000 && boss_Hp<5000000){execute some comand)
-----> else if(another condition)[
}
else{};
---------->if(timer().now>1000 && position &&..){// can be ms
do something;reset timer if required or keep for another statement
}else if();
else{};
THAT'S WHY YOUR ad-dons and guides works.
But for skilled fight boss must act like ...
Random function; Timer;Hp;Position;
int x;
If(Hp>1000){
x=rand(1..10);
switch(x){
..case 1:
do something
break;
..case 2:
do something
-------------And in case another random variable lets say int y=rand(1...20)
----------------------Switch(y){
-----------------------------case 1:
.................................If(time!=1000 && postion==pythagor() ){
...............................}
--------------------------- break;
.---------}
}
break;
..case 3:
do something
break;
..case ...10:
do something
break;
default:
break;
}
}
And now without knowing players requires logic, fast thinking and reaction. Instead of ad-don "move left" - ok sir, "go away" or timer "boss will cast after 10 seconds prepare". Go and get ad-don for pvp which will tell when players will do something, you can predict possible moves when he got cool downs and that's all .