• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Reading files?

Status
Not open for further replies.
Level 6
Joined
May 15, 2008
Messages
105
Is there any trigger/script that can read some file (ex. .txt)?

If it should be custom script I ask for paste it here because I've not experience in writing it for WC3 and I'm not going to learn it just for make this one thing.
 
Last edited:
Is there any trigger/script that can read some file (ex. .txt)?

If it should be custom script I ask for paste it here because I've not experience in writing it for WC3 and I'm not going to learn it just for make this one thing.

as far as I know, none... why would you need it anyway?
 
I would like to add a trigger which would check a password in file which would allow to set some protected modes (to prevent from noobs choosing some unplayable modes while using a bot). It could also work as a list of admins on each bot (who would be allowed to use more commands).
 
Hm...you could however allow that only to player with a specific name that you enter. If your name is Kamulec and you type the code he will allow you to play that character and will allow to any of the names you've entered ect. Here:
  • Events
    • Player - Player 1 (Red) types a chat message containing -your code as An exact match
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
      • Your Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • (Name of (Triggering player)) Equal to Kamulec
            • (Name of (Triggering player)) Equal to Other Name
      • Then - Actions
      • Your Actions
      • Else - Actions
Hope it helps:)
 
Status
Not open for further replies.
Back
Top