HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need Help with some triggers

04-01-2007, 02:24 PM#1
DarthRevansith
Actuallt i don´t need help with them.... I NEED THEM !!
I wanna know how can i change the max hero lvl to a highter number.

and i wanna know how to create a trigger that activates when the player has a unit selected and the unit needs to bw a X unit and then the player writes the name of a spell and the spell name is added to the unit.

how can i do that ?
04-01-2007, 03:06 PM#2
Fireeye
1st: Look under Gameplayer Constants, there you can find it.
2nd: I don't understand what you mean
3rd: Use Search ffs, Question 1 were already asked like 100 times
04-01-2007, 05:20 PM#3
Dil999
For 1, theres a dropdown menu (Advanced) with Gameplay Constants in it. Find Hero - Maximum Level

For 2, heres how you tell when someone selects a unit.
Trigger:
Selection
Collapse Events
Player - Player 1 (Red) Selects a unit
Collapse Conditions
(Triggering unit) Equal to Gnoll 0008 <gen>
(Unit-type of (Triggering unit)) Equal to Footman
Collapse Actions
Do nothing

Heres how you add an ability:
Trigger:
Ability Adding
Collapse Events
Player - Player 1 (Red) types a chat message containing - as A substring
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Entered chat string) Equal to -divine shield
Collapse Then - Actions
Collapse Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
Collapse Loop - Actions
Unit - Add Divine Shield to (Picked unit)
Else - Actions


There may be a way to do it with substrings, but I'm too lazy to go into substrings at this time in the morning (1.20pm = the morning for me)