- Joined
- Sep 21, 2005
- Messages
- 5
I am making a map that needs more than just gold, lumber and food. There are two other resources called ore and precious materials, which are collected by a hero as items and can be clumped together in blocks of 5s (5 slots of 1)or 10s (2 slots of 5). I have been trying to figure out how to use 2 blocks of 10 ore and 2 blocks of 10 precious materials to enable the player to research 'cloud castle resources' which in turn enables the player to buy the cloud castle for 2000 gold and 4000 lumber. Please could somone give me a hand with this? I am stuck on converting items to research - i thought this would be it but it doesnt work.
Cloud castle enable
Events
Map initialization
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of items carried by Castle Builders Guild 0030 <gen>) Greater than or equal to 4
And - All (Conditions) are true
Conditions
(Item-type of (Item carried by Castle Builders Guild 0030 <gen> in slot 1)) Equal to Lump of 10 Ore
(Item-type of (Item carried by Castle Builders Guild 0030 <gen> in slot 2)) Equal to Lump of 10 Ore
(Item-type of (Item carried by Castle Builders Guild 0030 <gen> in slot 3)) Equal to 10 Precious Materials
(Item-type of (Item carried by Castle Builders Guild 0030 <gen> in slot 4)) Equal to 10 Precious Materials
Then - Actions
Unit - Order Castle Builders Guild 0030 <gen> to research Cloud Castle Resources
Hero - Drop (Item carried by Castle Builders Guild 0030 <gen> of type Lump of 10 Ore) from Castle Builders Guild 0030 <gen>
Item - Remove (Last dropped item)
Hero - Drop (Item carried by Castle Builders Guild 0030 <gen> of type Lump of 10 Ore) from Castle Builders Guild 0030 <gen>
Item - Remove (Last dropped item)
Hero - Drop (Item carried by Castle Builders Guild 0030 <gen> of type 10 Precious Materials) from Castle Builders Guild 0030 <gen>
Item - Remove (Last dropped item)
Hero - Drop (Item carried by Castle Builders Guild 0030 <gen> of type 10 Precious Materials) from Castle Builders Guild 0030 <gen>
Item - Remove (Last dropped item)
Else - Actions
To me that says that if the castle builders guild (which has inventory hero) is given the block of resources i mentioned earlier and they are in the correct slots, the upgrade should be done automatically and the resources will be used up. Whats wrong? Sorry if I havent explained very well :?
Cloud castle enable
Events
Map initialization
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of items carried by Castle Builders Guild 0030 <gen>) Greater than or equal to 4
And - All (Conditions) are true
Conditions
(Item-type of (Item carried by Castle Builders Guild 0030 <gen> in slot 1)) Equal to Lump of 10 Ore
(Item-type of (Item carried by Castle Builders Guild 0030 <gen> in slot 2)) Equal to Lump of 10 Ore
(Item-type of (Item carried by Castle Builders Guild 0030 <gen> in slot 3)) Equal to 10 Precious Materials
(Item-type of (Item carried by Castle Builders Guild 0030 <gen> in slot 4)) Equal to 10 Precious Materials
Then - Actions
Unit - Order Castle Builders Guild 0030 <gen> to research Cloud Castle Resources
Hero - Drop (Item carried by Castle Builders Guild 0030 <gen> of type Lump of 10 Ore) from Castle Builders Guild 0030 <gen>
Item - Remove (Last dropped item)
Hero - Drop (Item carried by Castle Builders Guild 0030 <gen> of type Lump of 10 Ore) from Castle Builders Guild 0030 <gen>
Item - Remove (Last dropped item)
Hero - Drop (Item carried by Castle Builders Guild 0030 <gen> of type 10 Precious Materials) from Castle Builders Guild 0030 <gen>
Item - Remove (Last dropped item)
Hero - Drop (Item carried by Castle Builders Guild 0030 <gen> of type 10 Precious Materials) from Castle Builders Guild 0030 <gen>
Item - Remove (Last dropped item)
Else - Actions
To me that says that if the castle builders guild (which has inventory hero) is given the block of resources i mentioned earlier and they are in the correct slots, the upgrade should be done automatically and the resources will be used up. Whats wrong? Sorry if I havent explained very well :?