- Joined
- Aug 18, 2008
- Messages
- 52
I want an income trigger that gives 1 gold per every 30 seconds of game so i did this....
1. I set variales to buildings
<><><><><><><><><><><><><><><><><><><><><><><><><><><>
2. I used those variables to make these triggers for income..
The thing is... It works when i test it myself, but when i host it, it crashes the game for me and everyone else playing. So -> i'm guessing its a leak. I started learning JASS because people were saying that i would need to do something like "udg_temp_unit_group" or something. BUT I want my trigger to keep giving income as long as my unit is alive.
>>>>> Will using udg_temp_unit_group or w/e mess that up??????? <<<<<
and if it does, how can i get rid of my leaks??? Does any1 want to leak check my map?
OH and btw, i downloaded a program thats a leak checker. But it didn't find any i don't think.
I'm very conmfused PLEASE HELP
1. I set variales to buildings
<><><><><><><><><><><><><><><><><><><><><><><><><><><>
-
SET VARIABLE
-
Events
- Map initialization
- Conditions
-
Actions
- Set Civ_1 = (Units of type Civ Building 1)
- Set Civ_2 = (Units of type Civ Building 2)
- Set Civ_3 = (Units of type Civ Building 3)
- Set Civ_4 = (Units of type Civ Building 4)
- Set Civ_5 = (Units of type Civ Building 5)
- Set Civ_6 = (Units of type Civ Building 6)
- Set Civ_7 = (Units of type Civ Building 7)
- Set Civ_8 = (Units of type Civ Building 8)
- Set Civ_9 = (Units of type Civ Building 9)
- Set Civ_10 = (Units of type Civ Building 10)
- Set Civ_11 = (Units of type Civ Building 11)
- Set Civ_12 = (Units of type Civ Building 12)
-
Events
2. I used those variables to make these triggers for income..
-
Civ 1 income
-
Events
- Time - Every 30.00 seconds of game time
- Conditions
-
Actions
- Unit Group - Pick every unit in Civ_1 and do (Player - Add 1 to (Owner of (Picked unit)) Current gold)
-
Events
The thing is... It works when i test it myself, but when i host it, it crashes the game for me and everyone else playing. So -> i'm guessing its a leak. I started learning JASS because people were saying that i would need to do something like "udg_temp_unit_group" or something. BUT I want my trigger to keep giving income as long as my unit is alive.
>>>>> Will using udg_temp_unit_group or w/e mess that up??????? <<<<<
and if it does, how can i get rid of my leaks??? Does any1 want to leak check my map?
OH and btw, i downloaded a program thats a leak checker. But it didn't find any i don't think.
I'm very conmfused PLEASE HELP
Last edited by a moderator: