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
He will Step on the Platform (Circle of Power) It will Scan him
Doors Open
But lets say it isn't the right person.
She will step on the platform
Doors Stay Close
Scanner Trigger
Grammer and Spelling Edited
Created by IKilledKEnny
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!
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
He will Step on the Platform (Circle of Power) It will Scan him
Doors Open
But lets say it isn't the right person.
She will step on the platform
Doors Stay Close
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!