- Joined
- Jun 12, 2007
- Messages
- 1,261
My map features dummy items, which will learn you the spell if you use the item.
That part works fine.
But you are also able to unlearn each spell individual, and when you unlearn the spell it´s dummy item will spawn at your location. And I have no clue how to recognize what spell the player is unlearning thus what dummy item should be dropped.
Background information:
- Each spell only has one level.
- You unlearn spells by purchasing an item (unlearn first spell, unlearn second spell etc) which are used automatically.
- It's for 4 players.
Current learn trigger: (It's just the basics for now and text part needs work lol.)
Don't know how to see what spells has been learned at what time etc etc So I can trace back: Unlearn 2, oh second spell is fire bolt, unlearn fire bolt and create learn firebolt dummy item.
Can somebody spoon feed me? With some sample triggers if can.
I'll give you rep
That part works fine.
But you are also able to unlearn each spell individual, and when you unlearn the spell it´s dummy item will spawn at your location. And I have no clue how to recognize what spell the player is unlearning thus what dummy item should be dropped.
Background information:
- Each spell only has one level.
- You unlearn spells by purchasing an item (unlearn first spell, unlearn second spell etc) which are used automatically.
- It's for 4 players.
Current learn trigger: (It's just the basics for now and text part needs work lol.)
-
Learn Firebolt
-
Events
- Unit - A unit Uses an item
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to Firebolt [Fire]
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Only4Spell[(Player number of (Owner of (Triggering unit)))] Less than 4
- (Level of Firebolt for (Triggering unit)) Equal to 0
-
Then - Actions
- Unit - Add Firebolt to (Triggering unit)
- Set Only4Spell[(Player number of (Owner of (Triggering unit)))] = (Only4Spell[(Player number of (Owner of (Triggering unit)))] + 1)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Only4Spell[(Player number of (Owner of (Triggering unit)))] Less than 4
- (Level of Firebolt for (Triggering unit)) Equal to 1
-
Then - Actions
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: You already know this spell.
-
Else - Actions
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: You can only have 4 spell.
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Don't know how to see what spells has been learned at what time etc etc So I can trace back: Unlearn 2, oh second spell is fire bolt, unlearn fire bolt and create learn firebolt dummy item.
Can somebody spoon feed me? With some sample triggers if can.
I'll give you rep