(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > Triggers & Scripts

Triggers & Scripts Discussions regarding GUI triggers & JASS/AI scripts may be found here. Please review the » JASS Tutorials » Trigger Tutorials

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-30-2007, 03:36 PM   #1 (permalink)

User
 
Join Date: Apr 2007
Posts: 63

Ultimatus has little to show at this moment (2)


Xp system

Hello i have a problem with my system maybe someone can help me. It only work till lvl 2 then it dont work anymore.

Einheit - A unit Stirbt
Einheitengruppe - Pick every unit in (Units in (Region centered at (Position of (Dying unit)) with size (1200.00, 1200.00)) matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Gleich True) and ((((Matching unit) is alive) Gleich True) and (((Matching unit) is Ein Gebäu and do (Actions)
Schleifen - Aktionen
Held - Add (((Hero level of (Dying unit)) / (Hero level of (Killing unit))) x 100) experience to (Picked unit), Verbergen level-up graphics
Schwebender Text - Create floating text that reads (String((Integer((((Real((Hero level of (Dying unit)))) / (Real((Hero level of (Killing unit))))) x 100.00))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (80.00%, 0.00%, 100.00%), and 0.00% transparency
Schwebender Text - Set the velocity of (Last created floating text) to 85.00 towards 90.00 degrees
Schwebender Text - Change (Last created floating text): Deaktivieren permanence
Schwebender Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Schwebender Text - Change the fading age of (Last created floating text) to 0.75 seconds

Last edited by Ultimatus; 04-30-2007 at 04:48 PM..
Ultimatus is offline  
Old 04-30-2007, 04:11 PM   #2 (permalink)
 
Diablo-dk's Avatar

Shifting voidwalker!
 
Join Date: Nov 2004
Posts: 396

Diablo-dk has a spectacular aura about (129)Diablo-dk has a spectacular aura about (129)Diablo-dk has a spectacular aura about (129)Diablo-dk has a spectacular aura about (129)


First of all, please use trigger tags by wrapping [trigger] and [/triger] between the text.
Secondly, it can be kinda hard for some people to help you as most of the text is in german(especielly me since i suck at german>_<)
And third, could you please explain how it is supposed to work?
__________________
Need an easy Recipe System for your map?
Wonder what is inside the Spellbook?
Check my Cinematic!

Vote for the hive, the most friendly wc3 website.
Diablo-dk is offline  
Old 04-30-2007, 04:36 PM   #3 (permalink)

User
 
Join Date: Apr 2007
Posts: 63

Ultimatus has little to show at this moment (2)


Oh sry my we is ger. how to use /trigger ? im new here

It should work so: if a unit die the units in a range of 1200 get lvl of dying unit / lvl of killing unit * 100 the other lines show the xp
Ultimatus is offline  
Old 04-30-2007, 04:41 PM   #4 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

just use

[trigger ] then some text here (trigger junk) [/ trigger]

Without the added spaces, I added those to make THW not turn that into a trigger tag.

Also, it only works till level two what? (of the killer or the killed?)
PurplePoot is offline  
Old 04-30-2007, 04:46 PM   #5 (permalink)

User
 
Join Date: Apr 2007
Posts: 63

Ultimatus has little to show at this moment (2)


It work untill the killer reach lvl 2
Ultimatus is offline  
Old 04-30-2007, 04:57 PM   #6 (permalink)
 
DragoonZombie's Avatar

Back to business.
 
Join Date: Mar 2005
Posts: 286

DragoonZombie is a jewel in the rough (194)DragoonZombie is a jewel in the rough (194)


trigger tags: [trigger]Your Trigger Here[/trigger]

XP System
Events
Unit - A unit Dies
Conditions
Actions
Unit Group - Pick every unit in (Units within 1200.00 of (Position of (Dying unit)) matching ((((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True) and ((((Killing unit) is alive) Equal to True) and (((Dying unit) is A structure) Equal to False)))) and do (Actions)
Loop - Actions
Hero - Add (((Hero level of (Dying unit)) / (Hero level of (Killing unit))) x 100) experience to (Picked unit), Hide level-up graphics
Floating Text - Create floating text that reads (String((((Hero level of (Dying unit)) / (Hero level of (Killing unit))) x 100))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (80.00%, 0.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 85.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 0.75 seconds

I optimized the Matching Unit thing and replaced that stupid "Casting Unit" thing, which is absolutly useless. One question, do you kill only heroes?
And are you using WeU? Because i dont have "Region centered at..."
__________________
Get 3ds Max 5 :: PM me - Available again!
DragoonZombie is offline  
Old 04-30-2007, 05:01 PM   #7 (permalink)

User
 
Join Date: Apr 2007
Posts: 63

Ultimatus has little to show at this moment (2)


hmmm i think so coz i make mobs as heros. i tested it again and when the enemy killed one of my units all get xp. :/ No i use WE
/edit: mhh i deleted the castig unit thing it was from a spelltrigger thx
Ultimatus is offline  
Old 04-30-2007, 06:36 PM   #8 (permalink)
 
Diablo-dk's Avatar

Shifting voidwalker!
 
Join Date: Nov 2004
Posts: 396

Diablo-dk has a spectacular aura about (129)Diablo-dk has a spectacular aura about (129)Diablo-dk has a spectacular aura about (129)Diablo-dk has a spectacular aura about (129)


Remember to clean the leaks in the above trigger, the group isn't destroyed.
__________________
Need an easy Recipe System for your map?
Wonder what is inside the Spellbook?
Check my Cinematic!

Vote for the hive, the most friendly wc3 website.
Diablo-dk is offline  
Old 04-30-2007, 07:09 PM   #9 (permalink)
 
DragoonZombie's Avatar

Back to business.
 
Join Date: Mar 2005
Posts: 286

DragoonZombie is a jewel in the rough (194)DragoonZombie is a jewel in the rough (194)


I removed the leaks for you too.

Oh i'm so nice~:emote_razz:

XP System
Events
Unit - A unit Dies
Conditions
Actions
Custom script - local location udg_TempPoint
Set TempPoint = (Position of (Dying Unit))
Set TempGroup = (Units within 1200.00 of TempPoint matching ((((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True) and ((((Killing unit) is alive) Equal to True) and (((Dying unit) is A structure) Equal to False))))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Hero - Add (((Hero level of (Dying unit)) / (Hero level of (Killing unit))) x 100) experience to (Picked unit), Hide level-up graphics
Floating Text - Create floating text that reads (String((((Hero level of (Dying unit)) / (Hero level of (Killing unit))) x 100))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (80.00%, 0.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 85.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 0.75 seconds
Custom script - call RemoveLocation( udg_TempPoint )
Custom script - call DestroyGroup( udg_TempGroup )
__________________
Get 3ds Max 5 :: PM me - Available again!
DragoonZombie is offline  
Old 04-30-2007, 07:57 PM   #10 (permalink)

User
 
Join Date: Apr 2007
Posts: 63

Ultimatus has little to show at this moment (2)


thx very much i will try it but how to get
Units within 1200.00 of TempPoint matching ((((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True) and ((((Killing unit) is alive) Equal to True) and (((Dying unit) is A structure) Equal to False))))
? i cant find it

/edit: upps found :D
Ultimatus is offline  
Old 04-30-2007, 08:01 PM   #11 (permalink)
 
DragoonZombie's Avatar

Back to business.
 
Join Date: Mar 2005
Posts: 286

DragoonZombie is a jewel in the rough (194)DragoonZombie is a jewel in the rough (194)


"Units In Range Matching Condition"

make sure to make the 2 variables
TempPoint - Point
TempGroup - Unitgroup
__________________
Get 3ds Max 5 :: PM me - Available again!
DragoonZombie is offline  
Old 04-30-2007, 08:11 PM   #12 (permalink)

User
 
Join Date: Apr 2007
Posts: 63

Ultimatus has little to show at this moment (2)


O_o it dont work .... it only work 2 times for a lvl up then it freeze up :( like at the beginning of
the threat
Ultimatus is offline  
Old 05-01-2007, 08:11 AM   #13 (permalink)
 
Diablo-dk's Avatar

Shifting voidwalker!
 
Join Date: Nov 2004
Posts: 396

Diablo-dk has a spectacular aura about (129)Diablo-dk has a spectacular aura about (129)Diablo-dk has a spectacular aura about (129)Diablo-dk has a spectacular aura about (129)


Did you set maximum level high enough? did you turn of the trigger at any point or edited it in some other way?

Off topic: Yay, 100 posts
__________________
Need an easy Recipe System for your map?
Wonder what is inside the Spellbook?
Check my Cinematic!

Vote for the hive, the most friendly wc3 website.
Diablo-dk is offline  
Old 05-01-2007, 08:18 AM   #14 (permalink)
 
DragoonZombie's Avatar

Back to business.
 
Join Date: Mar 2005
Posts: 286

DragoonZombie is a jewel in the rough (194)DragoonZombie is a jewel in the rough (194)


XP System
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Custom script: local location udg_TempPoint
Set TempPoint = (Position of (Dying unit))
Set TempGroup = (Units within 1200.00 of TempPoint matching ((((Dying unit) belongs to an enemy of (Owner of (Matching unit))) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Killing unit) is A structure) Equal to False))))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Hero - Add (((Hero level of (Dying unit)) x 100) / (Hero level of (Picked unit))) experience to (Picked unit), Hide level-up graphics
Floating Text - Create floating text that reads (String((((Hero level of (Dying unit)) x 100) / (Hero level of (Picked unit))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (80.00%, 0.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 85.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
Floating Text - Change the fading age of (Last created floating text) to 0.75 seconds
Custom script: call RemoveLocation( udg_TempPoint )
Custom script: call DestroyGroup( udg_TempGroup )

ok this works, but you have to set the experience rate to 0:
Hero - Make Player 1 (Red) Heroes gain 0.00% experience from future kills

And i know the problem, why you didnt get xp. It was your xp formula( ( Dying Level / Killer Level ) x 100 ).
I replaced it with actually the same result and it works.

/Edit Gratz Diablo-dk
__________________
Get 3ds Max 5 :: PM me - Available again!
DragoonZombie is offline  
Old 05-01-2007, 09:40 AM   #15 (permalink)

User
 
Join Date: Apr 2007
Posts: 63

Ultimatus has little to show at this moment (2)


big thx to dragoonzombie now everything works

~Ultimatus
Ultimatus is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ Trigger / System ] - Elemental Damage and Mastery System akasixcon Requests 1 03-08-2008 06:30 PM
i need a kick system killer702 Requests 10 02-06-2008 04:08 PM
[Trigger] Help with EndFight System Ultimatus Triggers & Scripts 2 01-04-2008 10:15 PM
2D system Sube2 Requests 2 12-17-2007 02:52 PM
What's the best system? Secret Assasin54321 Off-Topic 21 11-12-2004 02:27 PM

All times are GMT. The time now is 07:00 PM.






Your link here 
Remortgages | Bankruptcy |