🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!
This system allows for you to do 3 things
While containing only 6 Triggers and 9 variables
- Ally/Unally/Truce/Giving Full Control to other players
- Give you and tells you your Income
- Camera Movement such as controling the zoom, angle, roll, rotate, and height ( All the things you can move with Camera Triggers xD)
This was made for maps such as strategy/diplomacy maps, but can easily be used for other things as well just look for the group you want like Income which will have this telling you that its dealing with Income
-------- Set this up to what ever you like Example: Red in your map controls a controls a country...Therefore you can name it what the country is instead of red or blue --------
-------- Make sure the Event Periodic Timer is the same as your Timer in the Trigger named Timer --------
For each (Integer B) from 1 to 2, do (Actions)
Loop - Actions
-------- The Custom Script makes sure the memory leak is destoryed --------
Custom script: set bj_wantDestroyGroup = true
-------- Make Sure to select the Unit Type tha you want to use --------
Unit Group - Pick every unit in (Units of type IncomeUNIT_TYPE[(Integer B)]) and do (Actions)
Loop - Actions
Player - Add IncomeMoney[(Integer B)] to (Owner of (Picked unit)) Current gold
-------- Note: I Used 2 Integer B actions for Gold and Lumber --------
For each (Integer B) from 3 to 4, do (Actions)
Loop - Actions
-------- The Custom Script makes sure the memory leak is destoryed --------
Custom script: set bj_wantDestroyGroup = true
-------- Make Sure to select the Unit Type tha you want to use --------
Unit Group - Pick every unit in (Units of type IncomeUNIT_TYPE[(Integer B)]) and do (Actions)
Loop - Actions
Player - Add IncomeMoney[(Integer B)] to (Owner of (Picked unit)) Current lumber
Please Give Credit When used
Thanks to Forgotten_Warlord and James7 for helping me
12/15/09 Update 1
- Fixed the mistakes and improved coding that Forgotten_Warlord and James7 pointed out
12/17/09 Update 2
- Fixed The Alliance Bug(But it increases the size of the trigger :O)
- Added Truce as James7 suggested
- Improved Income Code
- Seperated Commands ( Caused Fatal Errors )
12/29/09 Update 3
- Improved Alliance Command ( like 10x smaller... The bug was that I used player Groups xD...Huge Face Palm )
- Added a Full Control Alliance as ikillforeyou suggested
- Added more Help for people who want to use just Camera or just Alliance Commands and such
Okay what you do is set the variable like the unit types and such. and select a number that hasnt been selected ( So Change the Array ). Then select the Building type. Then repat it but with the integer one ( The # for the income *Note; Make sure its the same array as the Building ). Then go to Income Command and Income Trigger and change the Loop for the last array you created. If you dont understand i'l be glad to help you!
I dont understand why it shouldnt work. It's probably because of the updates in the last few months. And I have moved to SC2 Modding so Im sorry when I have time I'll try to fix it but I sense most of WC3 Modding may go to SC2 as Better Editor, ect.
can you make it so if you ally someone then they will receive a yes/no dialog. if they select yes then they will both be allies, if they say no then they will remain how they were?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.