![]() |
Custom baddies and custom hp
Basically, I have one, apparently very powerfull, baddy. I can't damage it.
Here's some parts of the scritps used for attacking it, it's mostly triggeractions, but AI can't find out what's failing, since it's all going through :( First, the action triggered by punching: PHP Code:
PHP Code:
PHP Code:
The hp doesn't go down, yet the actions are received. =( |
o.o, I would simply use 'wash1t' or something
|
Okay, playing around I found out that I could damage the baddy if it didn't move. I then tried a long timeout, 3 seconds. I couldn't make it work with a shorter timeout. My question is, How could I make it so I could have a .05 timeout (clientside of course) and still have the actions be received?
Right now I'm using that long timeout with a for loop to make it look like it's moving, then stoping for a while. |
Okay, using the "hearts" variable now, so I can use hitobjects()
Still doesn't work well. It might have something to do with the timeout, but I don't want to slow it down too much =( PHP Code:
|
The serverside (x,y) of the baddy are different than the clientside (x,y). Make sure you're triggering at the serverside coordinates. If you're not modifying the (x,y) serverside, than you can store them in save[] variables (the npc will be stationary serverside), granted they still work...
|
It's all on clientside now :(
|
Sorry to bump :forwn:
It seems that I can only damage it once. I attack it, it's hearts seem to go down, but after that, I cannot hit it again. I've shortened the timeout as well, in fact, here is the current script: PHP Code:
|
Okay, I'm using hitobjects, and hearts for the baddy. Now, why would I only be able to hurt this baddy once. Even after it revives, I cannot hit it again unless I reconnect. Why?
There should be no reason for this now? At least not one I can see. Can someone please fill me in? What is wrong with this?!? |
First of all, why the heck are you making a clientsided baddy?
|
Because the serversided one didn't work. x_x
I want it serverside, but I'm afraid a large number could hurt the NPC server, or cause lag, etc. It doesn't work either way. :( |
Malorias baddys are serversided, and Im pretty sure that GKs and Zodiac's are aswell.
|
Once again, doesn't work
Movement is messed up, he doesn't shoot, and you can still only hit him once. Any thoughts? Here's what I have now: PHP Code:
|
Only pay attention to the above post....bump ;)
|
Lol, that movement.. is so.. lmao xD
|
Quote:
|
Ugh.. use move(dx, dx, speed, options) for movement.
Editing the X and Y manually will not give you very fluid movement due to the 0.05 second limit. |
Quote:
|
Oh come on, I've rescripted this three times, the last one should work.
Does anyone know why it wouldn't???? |
Okay, added the move thing, I'm nwe to using move, so tell me if I'm wrong:
(btw, it still doesn't work) PHP Code:
|
| All times are GMT +2. The time now is 04:36 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.