wc3edit.net

United Warcraft 3 map hacking!
It is currently September 3rd, 2010, 3:08 pm

 
flexOptix compatible reconfigurable transceivers CWDM SFP Plus, CWDM SFP, CWDM XFP, CWDM GBIC, CWDM Mux DIN rail, CWDM Multiplexer DIN rail DWDM SFP Plus, DWDM XFP, DWDM Transceiver, 10 Gigabit SFP Plus, 10GBase XFP XR, 10 Gigabit XFP, compatible xfp, compatible sfp+, mini-GBIC

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Triggering Experience
PostPosted: July 4th, 2009, 1:37 am 
Offline
Newcomer

Joined: August 5th, 2007, 10:07 pm
Posts: 1
How do you set the experience gain to a trigger? For example, a unit dies and all heroes within 1500 range of the dying unit gain 3 experience.


Top
 Profile  
 
 Post subject: Re: Triggering Experience
PostPosted: July 4th, 2009, 2:31 am 
Offline
Forum Addict
User avatar

Joined: November 17th, 2008, 3:49 pm
Posts: 495
Alright, im not sure if this is going to work..as ive really never done anything like this before..just taking a guess..but something like...
Code:
Actions
    Set Player = (All players controlled by a User player)
    Player Group - Pick every player in Player and do (Hero - Make (Picked player) Heroes gain 0.00% experience from future kills)

Put this under your initialization trigger

And then create a new trigger.
Code:
Melee Initialization
    Events
        Unit - A unit Dies
    Conditions
        ((Killing unit) is A Hero) Equal to True
        ((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Unit-type of (Dying unit)) Equal to Footman
            Then - Actions
                Unit Group - Pick every unit in (Units within 1500.00 of (Position of (Killing unit)) matching (((Owner of (Killing unit)) is an ally of Player 1 (Red)) Equal to True)) and do (Hero - Add 3 experience to (Picked unit), Show level-up graphics)
            Else - Actions
                Do nothing
Try it out, if it doesnt work, report back and ill try a different way...i just couldent find any good info on the subject so at the moment im not sure which direction im supposed to head with this.

Edit : You can still try that out..however somehow i feel like im completely wrong..lol take a look at this..http://www.hiveworkshop.com/forums/spells-569/rpg-systems-pack-103406/?prev=search%3DRPG%26d%3Dlist%26r%3D20

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Privacy Policy Statement
Impressum (German)