| 10-20-2003, 11:20 PM | #1 |
ive got sum sort of mug ability goin where: Event: NONE Condition: Spell Being Cast (OR WUTEVER) Equal to Mug Action: Add 10 Gold to (Casting Player) It doesnt seem to work. Any comments? |
| 10-20-2003, 11:25 PM | #2 |
If there's no event, how can it work? *crowd goes "oooooo"* |
| 10-20-2003, 11:27 PM | #3 |
there doesnt always have to be methinks... i already tried it with an event and it still didnt work. |
| 10-20-2003, 11:28 PM | #4 |
???? do you need help with this ability or something? or are you just telling us that you made that ability? I have 2 type of mug in my map.. 1 type is stealing gold from enemy based on % and the other steals an item.. if need help just reply |
| 10-20-2003, 11:29 PM | #5 |
Hes rite, do you have any prior trigger experience |
| 10-20-2003, 11:29 PM | #6 | |
Quote:
Actually, every trigger needs an event or unless stated otherwise (Run Trigger "BLAH", etc.) The event is the actual thing that requires the trigger to happen. The condition just narrows the choices down. Get my drift? |
| 10-20-2003, 11:33 PM | #7 |
Thnx Behemoth |
| 10-20-2003, 11:37 PM | #8 |
well waht do you want??? steal xx amount of gold or steal % amound of gold or steal item???? |
| 10-20-2003, 11:42 PM | #9 |
10 gold steal |
| 10-20-2003, 11:56 PM | #10 |
I created a unit variable named StealgoldTarget and another unit varible named StealgoldCaster E- a unit issue order targeting an object C- (unit type of(ordered unit)) equals to () <---- insert your type of hero here C- issued order equals to order(shadowstrike) <--- since I based my spell off shadowstrike, shadowstrike would be the orderstring A- Set StealgoldTarget = (Target unit of issued order) E- a unit starts the effect of an ability C- ability being cast equals to () <---- insert your spell here A- Set StealgoldCaster = (Casting unit) A- Player - Add (10) to (owner ofStealgoldCaster) Current gold A- Player - Add (-10) to (owner ofStealgoldTarget) Current gold |
| 10-21-2003, 12:15 AM | #11 |
oh ya add this will make it look nice....... I created a Floating Text variable array with size set to 2 and named it stealgoldFloattext A- Floating Text - Create floating text that reads (-10 gold) above StealgoldTarget with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 5.00%), and 20.00% transparency A- Set stealgoldFloattext[1] = (Last created floating text) A- Floating Text - Set the velocity of stealgoldFloattext[1] to 64.00 towards 90.00 degrees A- Wait 0.50 game-time seconds A- Floating Text - Create floating text that reads (+10 gold)) above StealgoldCaster with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 5.00%), and 0.00% transparency A- Set stealgoldFloattext[2] = (Last created floating text) A- Floating Text - Set the velocity of stealgoldFloattext[2] to 64.00 towards 90.00 degrees A- Wait 1.00 game-time seconds Floating Text - Destroy stealgoldFloattext[1] A- Wait 0.50 game-time seconds A- Floating Text - Destroy stealgoldFloattext[2] |
| 10-21-2003, 04:12 AM | #12 |
i think he had a trigger he couldnt figure out and fished out an answer from you behemoth lol!!! |
| 10-21-2003, 06:43 AM | #13 |
lol there doesn't seem much of a use to answering any of ultima's questions anymore. i vote ultima to be the #1 most likely to get banned within the next month. this guy posts so much nonsense it's not even funny. i especially like the one that a mod changed to read i'm a damn moron. o that was good. at any rate all triggers must have events and if they don't they will not run. behemoth did a lot of work on that trigger but there is an easy less work but not as good result way that i will post here just because i'm bored and have nothing else to do. event- --unit begins casting an abilty condition- --abilty being cast equal to mug action- --set property gold of owner of triggering unit to +10 or something like that --no other action because you never mentioned taking gold from the other unit in your original post just getting it and there you go. a stupid easy version of that trigger. who could resist stupid and easy huh? not me thats for sure. sigh. am i bored or what? |
| 10-21-2003, 06:59 AM | #14 | |
Quote:
This is not exactly true... a trigger call upon another trigger without events or conditions can run:bgrun: and same goes for custom script calling upon a funtion... I think you mean that a trigger without an event cannot run by itself :ggani: At any rate, I like helping others when I can, I started out a total n00b and now I'm pretty good at it caz of all the help I've received from this forum....:D |
| 10-21-2003, 07:37 AM | #15 |
edit yes i know the part about running triggers ignoring conditions and such. just left it out. figured everyone would understand what i meant. mr. perfect. hehe and yes i was a total noob when i started too. which was o let me see. last month. when i joined this forum i thought to edit spells you had to edit a txt file somewhere. lol now i can do basically everything. i'm so proud of myself. (pat on the back) |
