Event Viewer Help :)

Hjorten

New member
Jun 14, 2017
29
2
3
55
Hey all,

Been looking in DOC's on forum and i don't get it all. How to do this and this. Can it be done etc..

So why not make a post, where i and others can ask for help to make a new command i Event Viewer.

I go first.

I have made some fun on my server and want to make a command so people get teleported to a location.

It's a maze i have build. So there can teleport there with command and try it and if there get stuck or can't find there the way out. There can simple just use the command again to get outside and maybe try again or try one of the one things i have made.

So....

Name:

Type:

Conditionals:

Script:

Name coud be what ever it shoud be. But then.. Type could be Player Spawn Teleport. Then for Conditionals can be STARTSWITH:/Maze - but for script.. im like ??.. any one??

Best regards

Hjorten
 
Good idea, thanks for starting this thread. =)

So to help with your current idea, what'd you want to do is:

Anytime you want to respond to player chat, that is going to be the event type "player public chat".

So the conditionals, you have right: STARTSWITH:/Maze

and in the script, you'd have something like:

sayplayer {{player_name}} "Teleporting you to the maze!, if you get lost, type /lost to get out of the maze!"
teleportplayer {{player_name}} 100 -1 100

Then, create a /lost script in the same way. You'd replace 100 -1 100 with the actual coordinates you want the player to be teleported to.
 
Good idea, thanks for starting this thread. =)

So to help with your current idea, what'd you want to do is:

Anytime you want to respond to player chat, that is going to be the event type "player public chat".

So the conditionals, you have right: STARTSWITH:/Maze

and in the script, you'd have something like:

sayplayer {{player_name}} "Teleporting you to the maze!, if you get lost, type /lost to get out of the maze!"
teleportplayer {{player_name}} 100 -1 100

Then, create a /lost script in the same way. You'd replace 100 -1 100 with the actual coordinates you want the player to be teleported to.

Sending Console Commands is not working. Or Atleast they seem not to be completely. I made a similar event to what the OP is talking about.. so that people could teleport in and out of a "Bloodmoon refuge" as an alternative to logging off during the blood moon. The "Teleportplayer" console command only seems to work when the source of the event is set to "RAT" instead of "user" (the drop down list to change it is grayed out)... oddly... the program will not allow you to switch this, and every newly created command is stuck on "user"... the only work around I found was to take one of the pre-made "RAT" source events that you have in the program and modify the script to make the event do what I need it to do...

My thread : How do you issue commands to the console with the event maker??
 
Sending Console Commands is not working. Or Atleast they seem not to be completely. I made a similar event to what the OP is talking about.. so that people could teleport in and out of a "Bloodmoon refuge" as an alternative to logging off during the blood moon. The "Teleportplayer" console command only seems to work when the source of the event is set to "RAT" instead of "user" (the drop down list to change it is grayed out)... oddly... the program will not allow you to switch this, and every newly created command is stuck on "user"... the only work around I found was to take one of the pre-made "RAT" source events that you have in the program and modify the script to make the event do what I need it to do...

My thread : How do you issue commands to the console with the event maker??

Hmm, that doesn't make sense... meaning, that shouldn't matter at all. The "Source" was something I put in for future use incase I wanted to stop people from editing the RAT required commands. I'll have to look into it and see if I can see anything.

Also, sorry about not replying to your post! I read it at work, didn't have time to reply correctly and then forgot! I'll check it again now.
 
Good idea, thanks for starting this thread. =)

So to help with your current idea, what'd you want to do is:

Anytime you want to respond to player chat, that is going to be the event type "player public chat".

So the conditionals, you have right: STARTSWITH:/Maze

and in the script, you'd have something like:

sayplayer {{player_name}} "Teleporting you to the maze!, if you get lost, type /lost to get out of the maze!"
teleportplayer {{player_name}} 100 -1 100

Then, create a /lost script in the same way. You'd replace 100 -1 100 with the actual coordinates you want the player to be teleported to.

So great this.. It's working so well.. a follow up question on this.. is it posible to make a delay on that people get teleported? for like 10 secs or so .. so people can use it to get away from dogs zombies etc.. ?

link of the 2 mazes so faar.. 4k picture.. https://steamuserimages-a.akamaihd....osite-to=*,*|2048:1152&background-color=black
 
New Question....

I have made this Notify Admin event and it works.

But how can i make an event that Notify me on discord ?

So when all works with the discord setup .. Soo cool..

Like...

Name: Tell Admin on Discord
Type: Player Public Chat
Conditionals: STARTSWITH:!aod

Script:


Here is where im lost.. on the scrip and hope some one out there knows what to do..lol

It woud be cool if i got it in a whisper on discord.. so even if im not online i will still get it...
Maybe even tell the person who use the commands that message have been send in a "PM" ingame
 
Currently there is no private Discord message (I'll be adding it in though). But in the script, you'd put something like:

.DSAY: {player_name} said: {0}

it's basically the same as the event I told you to add to the Player Public Chat with order 9999 on it. =)
 
Currently there is no private Discord message (I'll be adding it in though). But in the script, you'd put something like:

.DSAY: {player_name} said: {0}

it's basically the same as the event I told you to add to the Player Public Chat with order 9999 on it. =)

Then it said {0} in text chat on discord.. :)
 
I have a question about Event Viewer. What about IF statement? How we can get variables and compare them to integers for example.
I've tried to make something like this for Player Died event:
IF {player_deaths}=1 //player died first time
say "{player_name} died first time. Nothing to worry about"
END
IF {player_deaths}>1 AND {player_deaths}<=5 // player died more than once but less or equal to 5
say "{player_name} died again. Shameful display!"
END
IF {player_deaths}>5 //player died more than 5 times
say "{player_name} died just again! You suck, buddy!"
END

So it's just an example. I've tried different combination, but so far is not working. Is there any chance it can be made somewhere for future updates? Or maybe I'm doing something wrong?
Also, if this is wrong thread please forgive me and move it to the right threat. Thank you in advance!
 
I have a question about Event Viewer. What about IF statement? How we can get variables and compare them to integers for example. Thank you in advance!

Currently there are no conditional statements in the way you describe. I have plans (and am working on in the background) of adding IF conditions in, but I can't say that they'll ever make it into the code. Depends on how much effort it takes. But, I'm trying, so who knows. =)