Last active
September 12, 2018 05:45
-
-
Save Rinatamu/54afae148711af86f94af73e00fa7bb1 to your computer and use it in GitHub Desktop.
PowerAppsでバトルゲームを作ろう!(その1:パラメータ設定画面) ref: https://qiita.com/rnakamuramartiny/items/bffe2aa96e7989949c98
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1P_AllocationPoint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1P_PWR*3)+(1P_DFS*5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set(1P_AllocationPoint,20); | |
Set(1P_MAX_HP,0); | |
Set(1P_PWR,1); | |
Set(1P_DFS,1); | |
Set(1P_SPD,1); | |
Set(1P_LCK,1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UpdateContext({'1PVisible':true,'2PVisible':false}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If(1P_AllocationPoint=0,true,false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'1PVisible' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If(1P_PWR>1,Set(1P_PWR,1P_PWR-1); | |
Set(1P_AllocationPoint,1P_AllocationPoint+1), | |
"") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1P_PWR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If(1P_AllocationPoint>0,Set(1P_PWR,1P_PWR+1); | |
Set(1P_AllocationPoint,1P_AllocationPoint-1), | |
"") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UpdateContext({'1PVisible':true,'2PVisible':true}); | |
Navigate(Battle_Screen,ScreenTransition.Fade) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set(1P_AllocationPoint,20); | |
Set(1P_MAX_HP,0); | |
Set(1P_PWR,1); | |
Set(1P_DFS,1); | |
Set(1P_SPD,1); | |
Set(1P_LCK,1); | |
Set(2P_AllocationPoint,20); | |
Set(2P_MAX_HP,0); | |
Set(2P_PWR,1); | |
Set(2P_DFS,1); | |
Set(2P_SPD,1); | |
Set(2P_LCK,1); | |
UpdateContext({'1PVisible':false,'2PVisible':true}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment