Event problem fixed - Printable Version +- Sword of Moonlight Forums (https://forum.swordofmoonlight.com) +-- Forum: Sword of Moonlight (https://forum.swordofmoonlight.com/Forum-Sword-of-Moonlight) +--- Forum: SOM Guides, FAQ and Help (https://forum.swordofmoonlight.com/Forum-SOM-Guides-FAQ-and-Help) +--- Thread: Event problem fixed (/Thread-Event-problem-fixed) |
Event problem fixed - Verdite - 2012-10-15 <-melodrama Ok Holydiver helped me set up counters for equipment tonight which is a somex exclusive. I got the game to add 4 strength, and decrease 50 mana when 4 items are equipped as a set. The problem is ive tried for over an hour, trying to figure out how to reset (decrease 4 strength, restore 50 mana) when the player removes a set piece, then start measuring if the player equips the four items again. Event: Equip set AO Start condition= counter ex.equip.head =172 (172 is the item number in the parameter.) and its a helmet. Then i have three weapons of choice, if you equip one item it moves the leaf forward and checks if you have the armour, and finally If>have gloves> alter the counter value of increase (counter) to 1. Otherwise alter leaf of this event back to 0 (weapon check.) End if Event: Increase temp AO Start condition= increase=1 If= increase=1 Alter counter value= increase=2 change param mp decrease by 50 change param str increase by 4 control active leaf this event move to leaf 1 (leaf 1 has nothing) otherwise control active leaf of this event to 0 (this leaf.) end if Event name: Reset AO start condition: increase= 2 If = increase=0 change player parameter (mp increase by 50) change player parameter (str decrease by 4) otherwise control active leaf of this event to 0 (this leaf) end if Thanks in advance. Re: Help...! TECHNICIAN!? - HwitVlf - 2012-10-15 Its actually quite doable to detect what is equipped in regular SoM by assigning unique stat boosting values to various equipment. I did it in my game. But the answer in Mick's somex would depend on how he set up the equip-detect system. Based on your description I would say something like this would work: Event Helmet Check Always On: Page0 If counter ex.equip.head =172 Alter Counter "SetEquipedCheck" +1 Go to Page1 End If Page1 If counter ex.equip.head not= 172 Alter Counter "SetEquipedCheck" -1 Go to Page0 End If Event Leg Armor Check Always On: Page0 If counter ex.equip.Leg = ### Alter Counter "SetEquipedCheck" +1 Go to Page1 End If Page1 If counter ex.equip.Leg not= ### Alter Counter "SetEquipedCheck" -1 Go to Page0 End If Event Stat adjust Always On: Page0 If counter "SetEquipedCheck" > 1 change param mp decrease by 50 change param str increase by 4 Go to Page1 End If Page1 If counter "SetEquipedCheck" < 2 change param mp increase by 50 change param str decrease by 4 Go to Page0 End If There are quite a few different variations you can insert into this basic layout but it assumes Mick's rig can detect "not equal". Re: Help...! TECHNICIAN!? - Verdite - 2012-10-16 Thanks alot John |