Starting the level with player's MP 0

betterbold

Active member
I want to start the level with player's MP 0. :)
It's probably easy issue but I don't know any way.
Could you tell me about it ?
 
Just use this
Code:
spawn  enemy
@script
void main(){
void P1 = getplayerproperty(0,"entity");  
        void P2 = getplayerproperty(1,"entity");  
        void P3 = getplayerproperty(2,"entity");  
        void P4 = getplayerproperty(3,"entity");
changeentityproperty(P1, "mp", 0);
changeentityproperty(P2, "mp", 0);
changeentityproperty(P3, "mp", 0);
changeentityproperty(P4, "mp", 0);
}
@end_script
	coords  123 123
	at  0
 
Yeah people just want ready solution, shared codes like this saved me a lot of times,  so i use forums to hold my own scripts for me in the future, if others can use them - great.
 
Back
Top Bottom