PoLlama Forums  

Go Back   PoLlama Forums > WarCraft > World Editor Help

Reply
 
LinkBack Thread Tools
Old 01-24-2008   #1
 
DarkBlade's Avatar
 
Join Date: Feb 2007
Location: Paradise City
Posts: 618
DarkBlade will become famous soon enough
Quest Issue

Well, I need to make it so that when a player finishes a quest, all players heroes' get experience.

And that's it :P I'm pretty sure I was confused on something else also, but I can't remember, so I'll probably just edit this post...

DarkBlade is offline   Reply With Quote
Old 01-24-2008   #2
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: Quest Issue

Code:
Done Quest
    Events
        Your Event for when the quest is done.
    Conditions
    Actions
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Owner of (Matching unit)) controller) Equal to User))) and do (Actions)
                    Loop - Actions
                        Hero - Add 1000 experience to (Picked unit), Show level-up graphics
Mr. Zero is offline   Reply With Quote
Old 01-25-2008   #3
 
DarkBlade's Avatar
 
Join Date: Feb 2007
Location: Paradise City
Posts: 618
DarkBlade will become famous soon enough
Re: Quest Issue

Ahh, that worked, but the "For Each (Integer A)" had to be revised

Code:
For each (Integer A) from (Number of players in (All players controlled by a User player)) to (Number of players in (All players controlled by a User player)), do (Actions)
    Loop - Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Owner of (Matching unit)) controller) Equal to User))) and do (Actions)
            Loop - Actions
                Hero - Add 10 experience to (Picked unit), Show level-up graphics
So thanks.

DarkBlade is offline   Reply With Quote
Old 01-25-2008   #4
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: Quest Issue

For each (Integer A) from (Number of players in (All players controlled by a User player)) to (Number of players in (All players controlled by a User player)), do (Actions)

... Ain't that like saying from 12 to 12? So only player 12 will apply to this.

Also by saying "(Number of players in (All players controlled by a User player))" is normally alright, but the problem araises when people are leaving the game. Example: Player 1 and 12 is the only ones playing. Now your function will return 2 and take Player 1 and 2. Now Player 12 wont get anything. See the problem?

Besides were I drinking when I made this?
You don't need that loop. Throw it away.

Code:
Done Quest
    Events
        Your Event for when the quest is done.
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Owner of (Matching unit)) controller) Equal to User))) and do (Actions)
                    Loop - Actions
                        Hero - Add 1000 experience to (Picked unit), Show level-up graphics
Mr. Zero 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
Awaiting Confirm Arachnophopia Quest Bug piotr9k Bug Report Board 1 02-01-2008 01:59 AM
Non-Snowy Tree Quest Catz Final Fantasy Epic RPG 3 08-11-2007 03:49 AM
[Tutorial] How to show quest for one player Mr. Zero Submit a Tutorial [World Editor] 9 07-18-2007 06:53 PM
[Tutorial] How to show a quest for one player Mr. Zero World Editor Help 0 04-21-2007 07:10 PM


All times are GMT -5. The time now is 10:00 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