| 02-27-2004, 11:00 PM | #1 |
what im trying to do is be able to pick up what level a skill is, so i set up these trigs: Code:
Mount Horse learn1
Events
Unit - A unit Learns a skill
Conditions
(Unit-type of (Learning Hero)) Equal to Knight Council Leader
(Learned Hero Skill) Equal to Mount Horse
MountHorselLearn Equal to 0
Actions
Set MountHorselLearn = (MountHorselLearn + 1)Code:
Mount Horse learn2
Events
Unit - A unit Learns a skill
Conditions
(Unit-type of (Learning Hero)) Equal to Knight Council Leader
(Learned Hero Skill) Equal to Mount Horse
MountHorselLearn Equal to 1
Actions
Set MountHorselLearn = (MountHorselLearn + 1)Code:
Mount Horse learn3
Events
Unit - A unit Learns a skill
Conditions
(Unit-type of (Learning Hero)) Equal to Knight Council Leader
(Learned Hero Skill) Equal to Mount Horse
MountHorselLearn Equal to 2
Actions
Set MountHorselLearn = (MountHorselLearn + 1)The prob is theres some crazy variable growth that goes on and MountHorselLearn = 3, so its like the event: Unit - A unit Learns a skill checks like i dunno, but the only reason MountHorselLearn should = 3 is if it previously 2 which it shouldnt because it starts at 0. so then the Unit learns a skill and it = 0. that means it will be set to 0+1, thats it, nothing else! but it keeps going ://// |
| 02-27-2004, 11:58 PM | #2 |
I didnt read that much but are you trying to make it so it can detect what level skill the hero has? Edit: Let me re-type that. Are you making triggers and you want it to be able to detect what level the skill is, and use that for trigger-enhanced spells? |
| 02-28-2004, 02:01 AM | #3 |
yes, im making it so i can detect what level a skill is for trigger enhanced spells. another problem i think i might run into later is its a bear form type spell, so level and skill transfering may be hard, but i figure i can make a bunch of variables for those things. I HOPE! X (Crossed fingers) |
| 02-28-2004, 03:14 PM | #4 |
Since patch 1.13 you can get the level of an ability for a unit, you can get it when you need an integer unit - level of ability for unit |
| 02-28-2004, 03:17 PM | #5 |
hmm, ok must of missed that. Ill go try again |
