Skip to content

Instantly share code, notes, and snippets.

@Rinatamu
Last active September 12, 2018 05:45
Show Gist options
  • Save Rinatamu/54afae148711af86f94af73e00fa7bb1 to your computer and use it in GitHub Desktop.
Save Rinatamu/54afae148711af86f94af73e00fa7bb1 to your computer and use it in GitHub Desktop.
PowerAppsでバトルゲームを作ろう!(その1:パラメータ設定画面) ref: https://qiita.com/rnakamuramartiny/items/bffe2aa96e7989949c98
(1P_PWR*3)+(1P_DFS*5)
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);
UpdateContext({'1PVisible':true,'2PVisible':false})
If(1P_AllocationPoint=0,true,false)
If(1P_PWR>1,Set(1P_PWR,1P_PWR-1);
Set(1P_AllocationPoint,1P_AllocationPoint+1),
"")
If(1P_AllocationPoint>0,Set(1P_PWR,1P_PWR+1);
Set(1P_AllocationPoint,1P_AllocationPoint-1),
"")
UpdateContext({'1PVisible':true,'2PVisible':true});
Navigate(Battle_Screen,ScreenTransition.Fade)
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