One For The More Advanced [Scripts Etc] -1 reply

  • 1
  • 2

Please wait...

Shadow10k

Meepity beepity BONK!

50 XP

27th March 2007

0 Uploads

76 Posts

0 Threads

#1 11 years ago

Ok, so some of you may be familar with Entity Modding, you know, server side mods that don't need downloads (maps of course). It is usually customary to add an admin room (We're talking clan modded maps here). Can someone give me a rough idea of a script for the following?

Button A is pushed (Trigger)

Check if council/admin/etc. (Rank)

Print message to activator ONLY (Print)

Teleport to origin (Blah Blah Blah)

Many thanks in advance.

-Shadow10k

-PS

Oh yeah, server is running JA+ so I'm talking about coucil_pass etc




~*Seto*~

Trapped in the interchet

50 XP

19th October 2007

0 Uploads

334 Posts

0 Threads

#2 11 years ago

Hello ^^

The normal scripting system can't really get information like if you are logged in to admin... it doesn't check cvars like that or read the console, so you can't make a scanner to do that...

One option you could try is making a lock and key system, which would require placing a trigger or item somewhere on the map that will run a script on the player and set a player parm to a certain value. Then for the other script that will run at the entrance to your admin room, you can have it check to see if the value of the player's parm matches another value, and if so activate the teleporter and anything else. This involves knowing about parms and if-else statements, though, which are probable the most complicated aspects of Icarus scripting, so if you're not up to this task, a third option is to place your admin teleporter behind a wall in the +x direction and have admins teleport to themselves to reach it. In JA+, if you teleport to yourself, your body moves a small distance in the +x direction, so place a teleporter behind a wall in this direction, have your admins walk up to the wall and tele to themselves, and they will get in your admin room.

I hope you understand this ^^. Have fun making your map.




Yzmo

Modding a game > Playing it...

50 XP

19th May 2006

0 Uploads

168 Posts

0 Threads

#3 11 years ago

Bleh.. This whole JA+ admin privilege system is only for ppl who wanna feel more important..

+Number 2 cant be done afaik...




Isla Kamamee

Awkward? You bet!

50 XP

28th August 2006

0 Uploads

1,179 Posts

0 Threads

#4 11 years ago

oh...If Else is easy enough to understand, but I dont know how to do it in the scripting language JKA uses...oh well, I tried to help, but that idea might work.




Shadow10k

Meepity beepity BONK!

50 XP

27th March 2007

0 Uploads

76 Posts

0 Threads

#5 11 years ago

I'm understand the conecpt of IF ELSE and it should be fairly easy for me to grasp, when you say the 'lock and key' system, do you mean an admin tele'ing into a wall to pick it up? If so that'd be just like how to get to the admin room =/ I know BobaFett has implemented it into a few maps I've played where it just checks your password/rank but unfortunately he has been missing for some months. Hmmm, he should so start a tutorial site =D




Mikouen VIP Member

What?

145,608 XP

4th September 2005

4 Uploads

11,730 Posts

2 Threads

#6 11 years ago

Sadly, the ICARUS scripting system doesn't support features only found in server mods, since it's designed to work with the base iD Tech 3 engine.

So, while the other three are more than possible, Yzmo is very much correct in saying that #2 can't be done with ICARUS.


I don't know how, and I don't know why, but this is totally Sheep's fault.



Szico VII

We want FF7-2/remake!

50 XP

14th September 2003

0 Uploads

1,683 Posts

0 Threads

#7 11 years ago

I beg to differ. it is very much possible. I have done it. (With some help from people more knowledgeable about scripting than me of course) It does rely on the admin pressing something in the map to tell icarus he is an admin though.




Mikouen VIP Member

What?

145,608 XP

4th September 2005

4 Uploads

11,730 Posts

2 Threads

#8 11 years ago

Well, yeah, that would work easily enough, but at that rate you may as well just either make the room public (since anyone could gain access either way by finding the button), or forget all the button crap and make the admin room in a seperate area of the map and just give the coordinates to people you want to be able to access it.

Either way, using a button to teleport to an admin room just seems to me like it's more work than it needs to be. True, it could limit access, but once one person is in anyone with the ability to use teleport can get in too, then all they need to do is /amorigin and they've got the coordinates to return at will.


I don't know how, and I don't know why, but this is totally Sheep's fault.



Szico VII

We want FF7-2/remake!

50 XP

14th September 2003

0 Uploads

1,683 Posts

0 Threads

#9 11 years ago

ahh, but when the button is in a room protected by a password which can be set in an icarus script... ;) (and you use a console to input the password ingame)




Shadow10k

Meepity beepity BONK!

50 XP

27th March 2007

0 Uploads

76 Posts

0 Threads

#10 11 years ago

Ok Szico VII if you can tell me how to do that I'll be your slave forever O.o




  • 1
  • 2