Author Topic: Events that don't seem to be working right  (Read 824 times)

Before I say anything- I'm not 100% sure where this belongs. I figured 'help' was more for when the game itself isn't working right, and this isn't coding, so I thought I'd put it here. I'll get more replies here anyways

So I'm working on a project and for it to work how I want it to, I need certain events to work right.

I want this bot, when activated, to say something and then charge at the player. Once the bot gets to you, the screen goes black and you wake up in this other area. However I keep running into a bunch of problems..

Sometimes the magic-darkness which I'm using for the screen effect doesn't work. I assume this is because of minigame settings
Sometimes setplayertransform decides not to do anything for some reason
Sometimes the bot randomly decides to get up and start charging towards me despite never being activated

I'm just having a heap load of issues. Can someone take a look and see what I might be doing wrong?
Here are the required 4 events (onbottouched, setplayertransform, playerfollow, and onbrickloaded just to make sure things don't break), elemental spells for the screen effect, and the savefile
http://forum.blockland.us/index.php?topic=227557.0
http://forum.blockland.us/index.php?topic=215543.0
http://forum.blockland.us/index.php?topic=77263.0
http://forum.blockland.us/index.php?topic=228742.0
http://forum.blockland.us/index.php?topic=90119.0
http://www.mediafire.com/?x8qm0y37v15bsn4 -
the save

Before I say anything- I'm not 100% sure where this belongs. I figured 'help' was more for when the game itself isn't working right, and this isn't coding, so I thought I'd put it here. I'll get more replies here anyways

every person who has said that has been moved to help.

every person who has said that has been moved to help.
Well if I get moved to help that's fine. But it doesn't seem like it belongs there, and in the meantime I will get more replies than I would there

also
(read 47 67 75 times)
0 downloads
I can always count on the great and faithful Blockland forums to help me out in times of need... :/
« Last Edit: April 08, 2013, 07:01:57 AM by Mysteroo »

I got a whopping one download! YEY

Seriously though, can somebody try and help me figure this out?

it would be easier if you had a private server for this

i can take a look at it when i get home

your problem is at some point the game decides to teleport the bot itself instad of the player this usally happens after the bot has been activated once

your problem is at some point the game decides to teleport the bot itself instad of the player this usally happens after the bot has been activated once
So you think it would be a bug with setplayertransform then?

well that stinks, I was hoping it'd be something I could actually fix :/
Thanks for the help though Magnus

So you think it would be a bug with setplayertransform then?

well that stinks, I was hoping it'd be something I could actually fix :/
Thanks for the help though Magnus

i was never sure i just said sometimes it teleports the player sometimes the bot
and on top of that i don't think the events are whats wrong they look stable

i was never sure i just said sometimes it teleports the player sometimes the bot
and on top of that i don't think the events are whats wrong they look stable
If the events are working fine, why would the bot be teleported? I don't think setplayertransform is supposed to do that, especially when the target is 'player,' lol I'm stupid, setplayertransform's target is the brick XD
« Last Edit: April 09, 2013, 08:31:21 PM by Mysteroo »

sorry for double post
So based on that idea that the bot will randomly be teleported instead of the player (Which I couldn't tell since I made the bot instantrespawn when it was activated) I tried testing it out a bit more and you're right.
Apparently setplayertransform will usually teleport the player, but often and at random times teleports the bot instead.

proabily because the add-on is outdated and needs to be fixed for bots