1-What's the script to make an unit to always stay in it's position without moving?
2-what's the command that makes my character get itens in the starting of the map?
3-is there a command that edits my (or other unit's) speed?
thank you if you help
on:start { 	ai_mode hunt; }
### Barrel id=250 name=MBarrel group=stuff icon=gfx\barrel.bmp model=gfx\barrel.b3d health=15 color=300,300,300 mat=wood maxweight=30000000 script=start on:start { $tmp=random(1,5); if ($tmp==1);{ $id=("item",29,10); store $id,"self"; $id=("item",58,1); store $id,"self"; }elseif ($tmp==2){ $id==("item",29,10); store $id,"self"; }elseif ($tmp==3){ $id==("item",14,30); store $id,"self"; }elseif ($tmp==4){ $id==("item",27,30); store $id,"self"; }elseif ($tmp==5){ $id==("item",45,20); store $id,"self"; $id==("item",46,20); store $id,"self"; } } on:create { $tmp=random(1,5); if ($tmp==1);{ $id=("item",29,10); store $id,"self"; $id=("item",58,1); store $id,"self"; }elseif ($tmp==2){ $id==("item",29,10); store $id,"self"; }elseif ($tmp==3){ $id==("item",14,30); store $id,"self"; }elseif ($tmp==4){ $id==("item",27,30); store $id,"self"; }elseif ($tmp==5){ $id==("item",45,20); store $id,"self"; $id==("item",46,20); store $id,"self"; } } on:use { exchange "self"; addstate "self",5; statevalue "self",5,100; } script=end;
### Rock id=63 name=Rock group=stone icon=gfx\rock01.bmp model=gfx\rock01.b3d scale=4 detailtex=1 mat=stone health=1500 find=23,90,2 find=21,90,7 find=23,300,1,1,88