Quote from onlyleviathan: GoScri: Trigger error in 'gt_herodies_func':Could not get 'unit from parameter in "UnitSetPosition' [value:223#1] Near line 85 in gt_herodies_Func[] in MapScriptgalaxy
Scri:Trigger error in gt_herodies_Func: Paramter out of bounds in GameAttributePlayersForTeam' [Value: -1. min: 1 max: 16] near line 87 in gt_herodies_Func[] in MapScriptGalaxy
Scri:Trigger error in gt_herodies_Func:Could not get 'to' from parameter in 'UIDisplayMessage' [value :0] near line 87 in gt_herodies_Func [] in MapScriptGalaxy
The first error means that one of the parameters doesn't match with the input. As the error says "Could not get 'unit from parameter", the specified unit is actually not a unit, thus it can't use that value and it give an error. The second one means it's out of bound. Like the error indicates, the value is -1, while it should be between 1 and 16. And the third one is just like the first one. The input doesn't match a parameter.
Also, please put the triggers between these <<code>><</code>> so they are actually readable.
So basically, generally and obviously... add more rocks.
Hope is just deferred disapointment.
Dropbox is an easy way to share maps between project members.
onlyleviathan Regular ShmoeSo I test these triggers in a small version of the map and I had no problem getting my heros to spawn after dying. I then copied the triggers into the big version and low and behold I get error messages. Can someone tell me what the heck this message means.
Scri: Trigger error in 'gt_herodies_func':Could not get 'unit from parameter in "UnitSetPosition' [value:223#1]
Near line 85 in gt_herodies_Func[] in MapScriptgalaxy
Scri:Trigger error in gt_herodies_Func: Paramter out of bounds in GameAttributePlayersForTeam' [Value: -1. min: 1 max: 16]
near line 87 in gt_herodies_Func[] in MapScriptGalaxy
Scri:Trigger error in gt_herodies_Func:Could not get 'to' from parameter in 'UIDisplayMessage' [value :0]
near line 87 in gt_herodies_Func [] in MapScriptGalaxy
Here is my trigger Text
hero dies
Events
Unit - Any Unit dies
Local Variables
killed unit = (Triggering unit) <Unit>
temp group = (Empty unit group) <Unit Group>
Conditions
((Unit type of (Triggering unit)) is Hero) == True
Actions
Variable - Set killed unit = (Triggering unit)
UI - Display "Your Mothership was destroyed! Resp..." for (Players on team (Triggering player)) to Subtitle area
Unit Group - Pick each unit in (Any units in (Region((Position of killed unit), 0.1)) owned by player Any Player matching Required: Item; Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit Group - Add (Picked unit) to temp group
General - Wait 5.0 Game Time seconds
Unit - Revive killed unit
Unit - Move killed unit instantly to (Start location of player (Player (Triggering player) from (Allies of player (Triggering player)))) (No Blend)
Unit - Set (Triggering unit) Life to 400.0
UI - Display "Your Mothership has respawned!" for (Players on team (Triggering player)) to Subtitle area
This trigger worked perfectly on a small version of the map. I have 8 computer players and 2 human players. I am in the process of working out a dota style map with automated computers.... Perhaps too many computers? I know at some point I need to just have 2 computer AIs. but for now I thought this simple test would work.