[System] Scanner Ver. 3.0

Miz

Administrator
Reaction score
424
Scanner Verison 3.0

Updates

- Scanners Faster
- Less Delay (if your computers crap)
- Edit Some Glutchs

I will be having like the other Verisons before GUI but I'm and now installing Jass!

Scanner System as a Security System for your Map!

A Secuirty System for only some type of unit can enter or change it so you can make it only so a Player Can enter (Not in the Demo)

If a Correct unit lets say a Secuirty Gaurd

Scanner.gif


He will Step on the Platform (Circle of Power) It will Scan him
Doors Open

Scanner2.gif


But lets say it isn't the right person.

Scanner3.gif


She will step on the platform
Doors Stay Close


Scanner4.gif


Scanner Trigger

Grammer and Spelling Edited

GUI

Code:
Scanner V3
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Unit-type of (Triggering unit)) Equal to Secuirty Gaurds
            Then - Actions
                Unit - Pause (Triggering unit)
                Game - Display to (All players) the text: Scanning Please Wai...
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00I|r
                Wait 2.00 seconds
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00II|r
                Wait 2.00 seconds
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00III|r
                Wait 2.00 seconds
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00IIII|r
                Wait 2.00 seconds
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00IIIII|r
                Game - Display to (All players) the text: Scanning Completed
                Game - Display to (All players) the text: |cff32cd32Acess App...
                Unit - Unpause (Triggering unit)
                Destructible - Open Iron Gate (Vertical) 0000 <gen>
                Wait 7.00 seconds
                Destructible - Close Iron Gate (Vertical) 0000 <gen>
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Unit-type of (Triggering unit)) Not equal to Secuirty Gaurds
            Then - Actions
                Unit - Pause (Triggering unit)
                Game - Display to (All players) the text: Scanning Please Wai...
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00I|r
                Wait 2.00 seconds
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00II|r
                Wait 2.00 seconds
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00III|r
                Wait 2.00 seconds
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00IIII|r
                Wait 2.00 seconds
                Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) for 1.00 seconds the text: |cffffcc00IIIII|r
                Game - Display to (All players) the text: Scanning Completed
                Game - Display to (All players) the text: |cffff0000Access De...
                Unit - Unpause (Triggering unit)
            Else - Actions
                Do nothing

Jass

Created by IKilledKEnny

Code:
function Scanning3OG takes integer i, destructable d returns nothing // Opening / Closing the gate. 
if i==0 then // If order is close
  if GetDestructableLife(d)<=0 then
    call DestructableRestoreLife(d,GetDestructableMaxLife(d),true)
  endif
  call SetDestructableAnimation(d,"stand")
elseif i==1 then // If order is open
  if GetDestructableLife(d)>0 then
    call KillDestructable(d)
  endif
  call SetDestructableAnimation(d,"death alternate")
endif
endfunction

function scanning3b takes nothing returns boolean // Force condition (only owner of triggering unit)
return GetFilterPlayer()==GetOwningPlayer(GetTriggerUnit())
endfunction

function scanning3 takes nothing returns nothing // Actions
local unit t=GetTriggerUnit() // t = triggering unit
local force f=CreateForce() // f = some force
local integer l=1 // l = 1
local boolexpr b=Condition(function scanning3b) // Condition is stored in variable
local string array s // Get array string variable 's' and setting it
set s[1]="|" // 1 "|"
set s[2]="|||" // 2 "|"
set s[3]="|||||" // 3 "|"
set s[4]="|||||||" // 4 "|"

call PauseUnit(t,true) // Pasue t
set f=GetPlayersMatching(b) // Set f as owner of triggering unit

loop // start loop
  exitwhen l>4 // condition for loop
  call DisplayTextToForce(f,"|cffffcc00"+s[l]) // Display massage
  call TriggerSleepAction(2) // Wait action
  set l=l+1 // Increase 'l' for loop condition
endloop

call DisplayTextToForce(f,"Scanning Completed") // Display massage

if GetUnitTypeId(t)=='h000' then // Checks if unit is a gard you might need to change 'h000'
  call DisplayTextToForce(f,"|cff00ff00Acess Approved") // Displays massage
  call Scanning3OG(1,gg_dest_LTg3_0000) // Opens gate
  call PauseUnit(t,false) // Upauses t
  call TriggerSleepAction(7) // Wait
  call Scanning3OG(0,gg_dest_LTg3_0000) // Close gate
else // Else
  call DisplayTextToForce(f,"|cffff0000Acces Denied") // Displays massage
  call PauseUnit(t,false) // Unpauses unit
endif

call DestroyForce(f) // Leaks from here
call DestroyBoolExpr(b)
set b=null
set f=null
set t=null
endfunction

//===========================================================================
function InitTrig_Scanning3 takes nothing returns nothing // Creates the trigger here
set gg_trg_Scanning3=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Scanning3,gg_rct_Scanning3)
call TriggerAddAction(gg_trg_Scanning3,function scanning3)
endfunction


Suggestions

If you think I should add something (I plan to edit the Scanning Loading Bar)
or remove something please reply on the this thread or PM me

Old Verisons

Verison 1.0 (The 1st one) - Click Here Released Dec. 2006

Verison 2.0 - Click Here Released Jan. 2006

©2007 Mizuio-Ken

Last Updated: 1:17 PM EST 4/15/07

Try it out yourself!
 

Sim

Forum Administrator
Staff member
Reaction score
534
You know right that for a 3.0 version those grammar and spelling mistakes cannot be accepted? Correct them ASAP! ;)

Compelted --> Completed.

Acces --> Access.
 

Miz

Administrator
Reaction score
424
lol opps that must have happen during the editing stage :p Thank you but I can't update the pictures but I can update the triggers
 

Sim

Forum Administrator
Staff member
Reaction score
534
Right.

You should mention it in the above post though that you corrected them (maybe under the picture?)

You also have even more mistakes :p

Secuirty Gaurds --> Security Guards
 

Miz

Administrator
Reaction score
424
Updated Triggers (Spelling and Grammer Errors)

--------------------------------------
God I hate the Grammar Police... lol
 

Miz

Administrator
Reaction score
424
Happy

God only Bad Comments but heres the thing

I have tested it

The Jass works and unlike Verison 2 Jass it isn't as bad... but whatever

JASS IS REMOVED Thank you that is all

But Clean it up I have edited it but w/e Steel but if I repost it after editing it I don't want to hear a word... about the jass because I also have to fix other things... Not to be mean I just have to fix things
 

Sim

Forum Administrator
Staff member
Reaction score
534
What he meant by "clean it up" is...

Remove BJ functions. Use locals. Remove leaks. Set locals to null. Don't use 492 functions when you can use one, etc.

Don't just hit "Convert to Custom Text" and think it is worthy of JASS... !

It is actually a torture for the eyes to read that JASS code :p

P.S. Those "fixes" should have been done before posting the thread.
 

Miz

Administrator
Reaction score
424
Ugh Jass... More Probelms

But when I mean Fixes I mean Upgrades in a way not like glutchs

You guys are eatting me alive here

And have you even posted one good thing about it yet

Grammar Comments 75%
Bad Comments 25%
Good Comments 0%
 

Sim

Forum Administrator
Staff member
Reaction score
534
Lol.

As for the real system as a system and something you just submitted, I like it :)

Lacks a bit of usefulness but it's a matter of opinion there. Well done, Keep up the good work (and the updates :p)!
 

Miz

Administrator
Reaction score
424
Well it was mainly for a friends FBI map ... where only a person could get past the door the others had to blast past it :D
 

Tom Jones

N/A
Reaction score
437
Could you make the scanning proces, scaning completed, and acces granted/denied appear over the circle of power instead? I think it'll look better.
And I'll have a look at the code now.

*Comments*
You should be able to easily modify units allowed by the scanner.
You should be able to easily modify the scan duration.
Don't convert your GUI triggers to custom text. The conversion is horrible, and barely understandable even if you know jass.
 

Miz

Administrator
Reaction score
424
hmm I do like that idea :D Thank you for suggesting it I will try putting it in the next verison or something :p
 

Miz

Administrator
Reaction score
424
Glutch .....

Sry for Double Posting but anyway

Glutch said:
A Glutch was found in the system if you put Security Guards and a Random Person at the same time on the pad the door will still open...

As I am trying to fix it as fast as possible so there maybe another trigger code or something
 
I

IKilledKEnny

Guest
This is overally nice, could have been in shorter trigger (with a loop or 2). However just so you'll know it leaks all players groups execpt "all players" group leaks (as far as I know).

Also JASS version could be nice if you know some, if not I could make one for ya (if I'll find the time in all the projects I'm working on ast+ the moment. :p ).
 
U

Ur-Quan

Guest
As much as I see ithis is just Open the doors to only one person trigger...
...with some eyecandy.
Good idea would be to add some effects while scanning.
Or doors with password.
Make some combinations.
This trigger could be done by anyone who least pays attention to WE.

Else than that its just a open/close doors trigger.
 

Miz

Administrator
Reaction score
424
I don't know if that was a insult or something good... but anyway

I am planning to do that do you have any Special Effect suggestions for the scanning I should do?

_________________________________________________________________
God I need 6 more rep for 50 .... And it still says 25 CURSE YOU REP COUNTER
 
I

IKilledKEnny

Guest
I'll add special effect to the system (working on JASS version now hope to finish it in no more then half an hour, assuming nothing personal will happen :p). I could try to put down code as well.

Also AceHart used in his map (Hatchery Havoc) some kind of progress bar, you might want to ask him how he did it.
 

Miz

Administrator
Reaction score
424
all stuff that can be put in the next verison (which has no deadline)

And here is my new editor person (w/e) IKilledKEnny
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top