PoLlama Forums  

Go Back   PoLlama Forums > WarCraft > World Editor Help

Reply
 
LinkBack Thread Tools
Old 06-06-2008   #1
 
luigi_fan64's Avatar
 
Join Date: Mar 2007
Location: Mushroom Kingdom
Posts: 1,392
luigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to all
Memory leaks in spells

I had spells working but i then tried to fix the memory leaks in the spells, and now they wont work. I think it has something to do with the matching unit but i cant think of how to fix it. Heres the trigger pelase help.

Mass Bloodlust
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Mass Bloodlust
Actions
Set temppoint = (Position of (Casting unit))
Set tempgroup = (Units within 1500.00 of temppoint matching (((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to True))
Unit Group - Pick every unit in tempgroup and do (Actions)
Loop - Actions
Unit - Create 1 Dummy caster for (Owner of (Casting unit)) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Add Bloodlust to (Last created unit)
Unit - Add a 0.01 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Picked unit)
Custom script: call DestroyGroup( udg_tempgroup )
Custom script: call RemoveLocation( udg_temppoint )

-------------------------
A wise man once said, When you know whats good for people more then they do, you have the right to impose your will on those people. As a mod of pollama, i have that right.

[Only registered and activated users can see links. ]

luigi_fan64 is offline   Reply With Quote
Old 06-06-2008   #2
 
King_Leopold's Avatar
 
Join Date: Apr 2007
Posts: 2,436
King_Leopold is a jewel in the roughKing_Leopold is a jewel in the roughKing_Leopold is a jewel in the rough
Re: Memory leaks in spells

it should be units within 1500 of casting unit, not matchin unit

Go to this link, now. [Only registered and activated users can see links. ]
King_Leopold is offline   Reply With Quote
Old 06-06-2008   #3
 
luigi_fan64's Avatar
 
Join Date: Mar 2007
Location: Mushroom Kingdom
Posts: 1,392
luigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to all
Re: Memory leaks in spells

it says units within 1500 of tempoint wich is set to the position of casting unit. >< matching unit reffering to the units that will be picked in the group.

-------------------------
A wise man once said, When you know whats good for people more then they do, you have the right to impose your will on those people. As a mod of pollama, i have that right.

[Only registered and activated users can see links. ]


Last edited by luigi_fan64; 06-06-2008 at 11:48 PM.
luigi_fan64 is offline   Reply With Quote
Old 06-07-2008   #4
 
luigi_fan64's Avatar
 
Join Date: Mar 2007
Location: Mushroom Kingdom
Posts: 1,392
luigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to all
Re: Memory leaks in spells

update the problem was the experation timer of .01 seconds lol, the dummies did not have enuf time to cast the spell.

-------------------------
A wise man once said, When you know whats good for people more then they do, you have the right to impose your will on those people. As a mod of pollama, i have that right.

[Only registered and activated users can see links. ]

luigi_fan64 is offline   Reply With Quote
Old 06-07-2008   #5
 
King_Leopold's Avatar
 
Join Date: Apr 2007
Posts: 2,436
King_Leopold is a jewel in the roughKing_Leopold is a jewel in the roughKing_Leopold is a jewel in the rough
Re: Memory leaks in spells

silly you

Go to this link, now. [Only registered and activated users can see links. ]
King_Leopold is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may post new threads
You may 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 Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warcraft 3 Terminology Kuramawhip Guides 2 08-22-2008 09:04 PM
Battle Mages (12) Dark.Revenant WarCraft Maps 1 08-21-2008 09:04 AM
Strategy in Battle Mages (GUIDE) Echonian BattleMages 26 07-31-2008 07:28 PM
Suggestion: Better scaling of spells and abilities in higher levels Halb Denied Submissions 0 04-02-2008 03:43 PM


All times are GMT -5. The time now is 08:57 PM.

A friend of Wc3Happy
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165