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

A damn game problem!

Status
Not open for further replies.
Greetings everyone , I just hope I've posted in the right direction.
I have very big problem that I really don't know where it comes from.
As some people knows , I'm working on my Hero Arena map.
After a player chooses a hero ( Not player 1 , you can play this map alone :d ) , he get kicked or disconnected. I have no kick triggers or others that can give influence. My triggers just adds a variable for every player's Hero , etc.
I really have no ideea what to do , I've tryed to do some things but nothing...

I need urgently help until tommorow when I promised to realase the first version..I can't do it with this big bug.

Please help :sad:

~Sincerily Dieseldodge.
 
Yes , I use custom models , but they are all tested. And I'll check again the triggers. Thanks!

EDIT: This is an example for just one hero , when he is choosen. P.S , I use same trigger for all heroes , just the unit is changed and the dialog clicked button ofc
  • Hammer Knight
    • Events
      • Dialog - A dialog button is clicked for DialogHero
    • Conditions
      • (Clicked dialog button) Equal to DialogHeroButtons[2]
    • Actions
      • Dialog - Hide (Clicked dialog) for (Triggering player)
      • Wait 3.00 seconds
      • Unit - Create 1 Hammer Knight for Player[(Player number of (Triggering player))] at (Target of current camera view) facing Default building facing degrees
      • Set PlayersHero[(Player number of (Triggering player))] = (Last created unit)
      • Special Effect - Create a special effect attached to the origin of (Last created unit) using Objects\Spawnmodels\Other\ToonBoom\ToonBoom.mdl
      • Sound - Play ReviveHuman <gen>
      • Quest - Display to (All players) the Hint message: ((Name of (Owner of (Last created unit))) + ( has choosen + (|cffffcc00 + ((Name of (Last created unit)) + |r))))
EDIT 2: I think I found something! At target of current camera view. This may be just for player 1 :-| I can try but I don't know is possible to spawn the unit in a random place in a region. Can someone help me easily with this? Thanks!
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
I don't realy see what the problem is by this trigger but you could try fixing some things in it.

1) Dialog - Hide (Clicked dialog) for (Triggering player) --> Set (Clicked dialog) to the variable you made for the Dialog.

2) Unit - Create 1 Hammer Knight for Player[(Player number of (Triggering player))] at (Target of current camera view) --> Set (Target of current camera view) to a point inside a region.
I suggest making a point variable and set that point variable to centre of <your hero spawn region>. Then create that hero at that point.

3) Special Effect - Create a special effect attached to the origin of (Last created unit) using Objects\Spawnmodels\Other\ToonBoom\ToonBoom.mdl --> You should create that effect at the unit you just assgned a unit variable to. Also you should destroy this effect after it has been used.

4) Sound - Play ReviveHuman <gen> --> Destroy the sound after it ahs been used or remove it completely.

5) Quest - Display to (All players) the Hint message: ((Name of (Owner of (Last created unit))) + ( has choosen + (|cffffcc00 + ((Name of (Last created unit)) + |r)))) --> You can use a Game- Tekst Message.

(Same trigger.)

6) (Last created unit) --> You can use that variable you made for that unit in here.
((Name of (Last created unit)) --> Same for this one.

-------------------------------------------------------------------------------------

If this does not help your problem you should base your hero selection system of something else. Dialog selection for heroes isn't that good.
Why?
-The amount is limited.
-When player is typing he might choose a hero by accident.
-It lacks description of the hero.

You can use different systems like:
-Taverns (Unlimited Amount) --> You do need more altars.
-An altar that can upgrade to different altar for alternate units. (Unlimited Amount)
-Place hero model in a selection part with a Circle of Power. When standing in front it will show a small description. When it enters the hero will be trained. With this one you can even make it possible for a hero to be selected only ones in a easy way.

There are alot more ways but these are by far the best in my opinion.

Good luck with your map.
- Airandius
 
Status
Not open for further replies.
Top