• 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.

Help: password-saved heroes in multiplayer maps

Status
Not open for further replies.
Level 6
Joined
Aug 29, 2004
Messages
159
Hi guys

in the Hero Defence i am working on, i want the player who wins the map (most kills) to be shown a code (as a text message to him). Then, next time he plays the map, he can enter the code to access a special hero. I figure that i can save the special heroes in a game cache when the game loads(i have no idea how to do that but still...). But how can i get the player to enter the code without it being seen by other players? Is there a way to hide chat messages? Or does anyone have an idea for another way i could do it?

Thanks,
Bort
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
You do not have to make it that others can not hear the code you have to make it that only that guy can uses the code.
Simply make a name scrambler.
It converts letters to numbers or latters or both.
Here are some examples.
G=85
W=UE
M=FY8
Z=7f3P
Try to keep them the same size or it might end up with needing realy alot of triggers.
The more letters/numbers a letter the safer the code but the more anoying the code is to type in.
Keep in mind the longer a players name the longer the code.
The pass could look like this EDTT8F52TG63RT1G2 for a player called I RULE U
Now when a player enters that save load code it runs it threw a descrambler and turns it into some tetters that should be the players name.
and then uses a condision if string Stringpass not = to player real display mesage YOUR PASS DOES NOT MATCH YOUR ACOUNT NAME!
No one but the player who won could uses that pass due to it is name protected.

You might run into problems with people who uses symboles/funny letters like +"*ç%%/&()=?`!£°§ and you would have to uses triggers to over come that (quite complex ones).
This can all be done in the normal world editor and does not need advanced jass scripts or WEU.
 
Level 6
Joined
Aug 29, 2004
Messages
159
hmm

so that would mean that the trigger would check the player name, and the code would be specific to the player name, right?

soo...hmmm...
but wouldnt people still be able to see the chat message?
then they'd be able to take a screenshot and change their name and use that code...
hmm... coupling that with another way i thought of (using a shop with items shotcut to a few letters, making a 4-or-so letter code that way) would work.. hmm
Thanks very much!, i might need some help getting that to work properly tho
Bort
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Yes sure they could read and copy the code but what uses is it when the code is battlenet acount name locked.
They can not create an exact copy of your acount (name wise) I think so it should be 100% safe.
And even if they can why go threw the trouble to create another acount to play your Game with a hidden hero.

I do not think it right that only the best gets a reward
On average only 4 people survive to the end of any game like a hero siege so thoughs that survived should be rewarded with something (can be anything).
You do not have to listen to this but it is only a sugestion.
 
Status
Not open for further replies.
Top