[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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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