[System] Scanner Ver. 3.0

U

Ur-Quan

Guest
That wasn't an insult for sure.
Constructive criticism :D.
I will tingle a little with your map if you dont mind.
Like add a spec effect or 2.
 

Miz

Administrator
Reaction score
424
TY then but IKilledKEnny will most likey helping me with Jass because I'm still learning but (If IKilledKEnny is still working with me on Verison 4) we will put the Special Effects

Nexts Verison Thread will have alot of things because people are telling me to put different stuff someplace else

Like Loading bar over the platform instead of a bigger edited one that most people do including Ace...

Special Effect and Normal one

And other things I have to put it

But this isn't really a map as it is a system that has gotten good reviews unlike my other Systems :p

___________________________________________
Woot 3 more Rep till 50!
 
I

IKilledKEnny

Guest
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

So this is the trigger, sorry it took so long loops are acting wierd and I'm trying to fix that.

I'm working at the moment on:

  • Using function instead of 's' I tryed to do that in the first place but somthing odd was going on when I did that.
  • Adding special effect, at the moment it's only the regular system.
  • Giving an example map.
  • Instructions on importing it to your map.
  • Aye, too much work for one little system, I know. :p

Notice: But the fact I use 's' instead of function everything was made so it would be quickest as I can, thus no BJs etc. All variables cleared so shouldn't be any lag. Also this was tested so it does work. ;)
 

Miz

Administrator
Reaction score
424
Well thank you for the help :p I added Jass into it and Thank you IKilledKEnny

but no rush IKilledKEnny we have time becasue the next verison is going to have many types of scanners and crap :p
 
I

IKilledKEnny

Guest
Sure. By the way clean your PM box, can't send you any...
 

Miz

Administrator
Reaction score
424
My PM Box is empty but make sure I'm on your buddy list or you click the button on the bottom

EDIT: WTF? 2 post ...
 
I

IKilledKEnny

Guest
Nope still can't send you. Could you just post / PM your MSN / skype? (MSN better). If you don't have then maybe E-mail? Just that it would be easier to communicate if we want to keep on doing this. :)
 

Miz

Administrator
Reaction score
424
I'm getting MSN soon I have AIM (which some how you can contact MSN - AIM but anyway) [email protected] is email

_____________________________________________________
3 more points of REP for 50 Rep ... but it still says its still 25
 

Hero

─║╣ero─
Reaction score
250
Also AceHart used in his map (Hatchery Havoc) some kind of progress bar, you might want to ask him how he did it.

For the progress bar all you do is some thing like this

|||||||||||||||

and when you display it you do it in steps

you show one then clear screen show 2 then clear screen show 3 etc..
 

Miz

Administrator
Reaction score
424
Thankyou but only loap lol joking...
-------------------------------------------------------------------------
Never found out when your sick from school how empty it can be on the forums
 

Miz

Administrator
Reaction score
424
Updated: Besides the Jass Being Added back to the thread we are going to put anyother upgrades to the next verison... And because there hasn't been much suggestions lately unless you really want something to be put in I think that the muti-trigger (Different Types) of scanners will be on Verison 4

Suggestions: are still allowed and if you cant do it here you can try to PM me

Comments: PLEASE!

EDIT: Some say my PM isn't working for some reason but you can email me
Click Here
 

Sim

Forum Administrator
Staff member
Reaction score
534
This looks more like a trigger if you ask me :p

It would belong in the Free Trigger Code subforum.
 
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