Just A Random User: I am pretty sure that such functions first need to be implemented in plus.dll, not really anything that a script can solve.
Punish campers xd!
This was the first thing I could think of when I wanted to try out AngelScript, but it could probably be altered quite easily for trigger-like purposes or something. It also illustrates the use of (multi-layered) arrays and return in conjunction with an array.
semi.j2as:
Pastebin'd for easier reading
Code:
old code removed to save space
Edit: Please read the code on pastebin, because things like " " gets treated as html code here.
Edit2: It would make more sense to execute jjPlayers[player].showText("You are camping " + campAreaName[camparea]); outside of the function. If there are more improvements that will have to be made, I will work that into the next version. :P
__________________
<center>  </center>
Last edited by Grytolle; Feb 3, 2013 at 09:45 AM.
Reason: removed code to save space (still in pastebin)
|