(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Hosted Projects > Requiem of the Gods > Bug Reporting\Technical Issues

Bug Reporting\Technical Issues Found a bug? Got a problem? Report it here and get help.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-25-2007, 03:03 PM   #1 (permalink)
 
Steelb_l_ade's Avatar

Creator of ROTG
 
Join Date: Apr 2006
Posts: 151

Steelb_l_ade is on a distinguished road (67)Steelb_l_ade is on a distinguished road (67)

PayPal Donor: This user has donated to The Hive. 

Heroes Choosing Trigger

In old versions of ROTG there was a different trigger to choose every hero. This is because heroes are chosen by entering regions.
This is not practical as theres 30 heroes. This is the new trigger im working on for choosing any hero.

Hero1 working Copy
Events
Unit - A unit enters Hero1 <gen>
Unit - A unit enters Hero2 <gen>
Unit - A unit enters Hero3 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Spirit (Hero Picker)
Actions
Trigger - Turn off (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero1 <gen> contains (Triggering unit)) Equal to True
Then - Actions
Set HeroINTEGER = 1
Game - Display to (All players) the text: (String(HeroINTEGER))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero2 <gen> contains (Triggering unit)) Equal to True
Then - Actions
Set HeroINTEGER = 2
Game - Display to (All players) the text: (String(HeroINTEGER))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero3 <gen> contains (Triggering unit)) Equal to True
Then - Actions
Set HeroINTEGER = 3
Game - Display to (All players) the text: (String(HeroINTEGER))
Else - Actions
Do nothing
Set HeroINTEGER = 1
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
Hero_Taken[HeroINTEGER] Equal to 0
Or - Any (Conditions) are true
Conditions
((Owner of (Triggering unit)) is in Team1) Equal to True
((Owner of (Triggering unit)) is in Team2) Equal to True
Then - Actions
Set Hero_Taken[HeroINTEGER] = 1
Set PickingPlayer[HeroINTEGER] = (Owner of (Triggering unit))
Unit - Remove (Triggering unit) from the game
Sound - Play HeroChosen <gen> at 100.00% volume, located at (Position of Hero[HeroINTEGER]) with Z offset 0.00
Special Effect - Create a special effect at (Position of Hero[HeroINTEGER]) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Hide Hero[HeroINTEGER]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(PickingPlayer[HeroINTEGER] is in Team1) Equal to True
Then - Actions
Unit - Create 1 HeroType[HeroINTEGER] for PickingPlayer[HeroINTEGER] at (Center of Team1StartZone <gen>) facing 0.00 degrees
Set PlayerHero[(Player number of PickingPlayer[HeroINTEGER])] = (Last created unit)
Camera - Pan camera for PickingPlayer[HeroINTEGER] to (Center of Team1StartZone <gen>) over 1.00 seconds
Else - Actions
Unit - Create 1 HeroType[HeroINTEGER] for PickingPlayer[HeroINTEGER] at (Center of Team2StartZone <gen>) facing 180.00 degrees
Set PlayerHero[(Player number of PickingPlayer[HeroINTEGER])] = (Last created unit)
Camera - Pan camera for PickingPlayer[HeroINTEGER] to (Center of Team2StartZone <gen>) over 1.00 seconds
Game - Display to (All players) for 9.00 seconds the text: (PlayerColor[(Player number of PickingPlayer[HeroINTEGER])] + (((Name of PickingPlayer[HeroINTEGER]) + |r) + ( has chosen + (PlayerColor[(Player number of PickingPlayer[HeroINTEGER])] + ((Name of PlayerHero[(Player number of PickingPlayer[HeroINTEGER])]) + |
Set ChosenTextPG = (Player group(PickingPlayer[HeroINTEGER]))
Game - Display to ChosenTextPG for 9.00 seconds the text: |C0099CC99You may r...
Game - Display to ChosenTextPG for 9.00 seconds the text: |C0099CC99You can t...
Custom script: call DestroyForce(udg_ChosenTextPG)
Hero - Create |c007EBFF1Mercenary Contract|r and give it to PlayerHero[(Player number of PickingPlayer[HeroINTEGER])]
Selection - Select PlayerHero[(Player number of PickingPlayer[HeroINTEGER])] for PickingPlayer[HeroINTEGER]
Sound - Play HeroSpawned <gen> at 100.00% volume, attached to PlayerHero[(Player number of PickingPlayer[HeroINTEGER])]
Special Effect - Create a special effect attached to the origin of PlayerHero[(Player number of PickingPlayer[HeroINTEGER])] using Abilities\Spells\Other\Awaken\Awaken.mdl
Special Effect - Destroy (Last created special effect)
Set Random_Count = (Random_Count - 1)
Else - Actions
Do nothing

However, I need to know whitch region is being entered so i can know whitch hero to give them (hero integer) any ideas?
__________________
ROTG-Creator.
Before you ask something, at least attempt it yourself, else you'll only have to ask everything in life.

http://www.rotg.co.uk
http://www.clan-volt.batcave.net
Steelb_l_ade is offline  
Old 04-25-2007, 05:34 PM   #2 (permalink)

Inactive User
 
Join Date: Feb 2005
Posts: 130

Urlock has little to show at this moment (19)Urlock has little to show at this moment (19)


Just use Taverns, duh.
__________________
Give me feedback in my thread for my map and I will increase your rep.
Urlock is offline  
Old 04-25-2007, 09:50 PM   #3 (permalink)
 
operator's Avatar

User
 
Join Date: Feb 2006
Posts: 1,680

operator is on a distinguished road (78)operator is on a distinguished road (78)


Quote:
Originally Posted by Urlock View Post
Just use Taverns, duh.
Really, do you find that very helpfull ? Do you answer his question with that comment ? Well, you don't. My advice is to give him some real help, if you don't know how to help him though, then simply don't respond to the thread.

~Operator
__________________
This post is written by

~Operator
____
operator is offline  
Old 04-26-2007, 01:11 AM   #4 (permalink)

Inactive User
 
Join Date: Feb 2005
Posts: 130

Urlock has little to show at this moment (19)Urlock has little to show at this moment (19)


Yes, I was being helpfull. Taverns are the best Hero selection system hands-down. If he needs help with that, I'd be glad to help him; but it's very easy to do so I doubt it.
__________________
Give me feedback in my thread for my map and I will increase your rep.
Urlock is offline  
Old 04-26-2007, 04:21 PM   #5 (permalink)
 
Steelb_l_ade's Avatar

Creator of ROTG
 
Join Date: Apr 2006
Posts: 151

Steelb_l_ade is on a distinguished road (67)Steelb_l_ade is on a distinguished road (67)

PayPal Donor: This user has donated to The Hive. 

Thanks for your replys fellas,
I'm right int he middle of working on the system, which has been revised considerably since this post, i'll post when its done to see if members of the community can improve it further.

Due to the nature of the map taven hero picking is definatly not viable.
__________________
ROTG-Creator.
Before you ask something, at least attempt it yourself, else you'll only have to ask everything in life.

http://www.rotg.co.uk
http://www.clan-volt.batcave.net
Steelb_l_ade is offline  
Old 04-26-2007, 04:33 PM   #6 (permalink)
 
Sar'Kter's Avatar

Call of Duty: W@W Player
 
Join Date: Jan 2007
Posts: 49

Sar'Kter is an unknown quantity at this point (0)


Try to use it,

Events
Unit - A unit enters Hero1 <gen>
Unit - A unit enters Hero2 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Spirit (Hero Picker)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero1 <gen> contains (Triggering unit)) Equal to True
Then - Actions
Unit - Create 1 XXX for (Owner of (Triggering Unit) at (center of Hero1Spawn <gen>) facing xxx Degrees
Unit - Remove (triggering unit) from the game
Else - Actions
Do Nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero2 <gen> contains (Triggering unit)) Equal to True
Then - Actions
Unit - Create 1 XXX for (...)
Unit - Remove (triggering unit) from the game
Else - Actions
Do Nothing

And You shouldn't turn off this trigger, becouse when 1st player will choose hero, rest of players won't be able to do it
And you can add more actions. I have tested it about 5 minutes ago and it was working correctly. I hope this will help you.
__________________
Current Projects
None

[box=Call of Duty Player]Playing Call of Duty: World at War. My name ingame is SarKter.
Sar'Kter is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My choosing terrian Da)sniper Terrain Board 24 11-22-2007 05:16 PM
Hero choosing Izzen@WC3 World Editor Help Zone 2 10-02-2007 08:28 PM
Choosing buttons Carrein World Editor Help Zone 5 06-28-2007 12:50 PM
Trigger Help - giving heroes abilities Godly-Forces Map Development 8 02-21-2005 02:09 AM
Trigger for saving heroes Goliath the God Map Development 2 10-28-2004 08:51 PM

All times are GMT. The time now is 01:46 AM.






Your link here 
Rebuildable cars | Mortgage Loans | Loans | Debt Consolidation | 0 Credit Cards
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle