• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

looking for.....

Status
Not open for further replies.
Level 1
Joined
Apr 26, 2006
Messages
1
I love the spellcraft map concept, and i would like to contact the creators to ask if i could get an unprotected version to learn the triggers, mt purpose being to try and develop an rpg version of the concept. I would appreciate any helpful input. Thanks - Nutz
 
Level 6
Joined
Feb 18, 2005
Messages
263
the trigger is relativley simple.
(i guess you mean learning spells by combining items)

you only need a lot of code, one if-sentence for each ability.
//there might be another way with jass, but i don't recommend it for ones not beeing expert in jass...

you need like this:

Prerequisites:
- Items - the items that might be combined
- Abilities - the abilities that shall be learned

Trigger
event
- unit - unit aquires item
cond
- or
- - item - itemtype(Item beeing manipulated) = <one of the items that are combineable>
- integer - Number of Items caried by (Hero manipulating Item) >= <number of items minimum required to combine to an ability>
action
- if
- - boolean - unit caries item of type() = true (do this for each item required for this ability)
- then
- - if
- - - integer - level of ability(<ability to be learned>) of (Hero manipulating item) = 0
- - then
- - - unit - add ability (<the ability to be learned>) to (Hero manipulating item)
- - - item - remove item(each item required for this ability)
- - else
- - - if
- - - - Integer - level of ability(<ability to be learned>) of (Hero manipulating item) < max_level
- - - then
- - - - unit - increase level of ability() for ()
- - - - item - remove item(each item required for this ability)
- - - else
- - - - //ability already maxed
 
Status
Not open for further replies.
Top