| 赞 | 14  | 
 
| VIP | 0 | 
 
| 好人卡 | 4 | 
 
| 积分 | 24 | 
 
| 经验 | 30333 | 
 
| 最后登录 | 2024-3-12 | 
 
| 在线时间 | 912 小时 | 
 
 
 
 
 
Lv3.寻梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 2399 
 
        - 在线时间
 - 912 小时
 
        - 注册时间
 - 2014-10-14
 
        - 帖子
 - 1331
 
 
  
 
 | 
	
3楼
 
 
 楼主 |
发表于 2020-2-14 04:22:14
|
只看该作者
 
 
 
 本帖最后由 j296196585 于 2020-2-14 04:32 编辑  
 
 
谢谢大佬回话 
 
 
可能我没有表达清楚意思哈  
 
角色 1 用一个变量 
 
角色 2 用一个变量 
 
角色 3 用一个变量 
 
这样子    
 
下图这个我现在只学会了所有角色通用一个变量  可是更换角色就会很尴尬的说   
//=====================机械王座==============================================                  if ($gameSwitches.value(42) == true){//条件变量 //          this.drawIcon( 3, x + 350, y, 60, 'right');//图标显示                      this.changeTextColor('rgba(0,255,0,255)');                             this.drawText("机械王座:", x + 800, y +130, 100, 'right');//文字显示                      this.changeTextColor('rgba(255,0,0,255)');                                     this.drawText( + $gameVariables.value(55)+"%净化率", x + 850, y +130, 200, 'right');        //变量显示           } else{                      this.changeTextColor('rgba(0,255,0,255)');                   this.drawText("机械王座:",  x + 800, y +130, 100, 'right');                           //  this.drawText("之塔:",  x + 680, y -20, 100, 'right');                      this.changeTextColor('rgba(255,0,0,255)');                             this.drawText("关闭",  x  + 850, y +130, 100, 'right');                         }; //============================================================================= 
 
 //=====================机械王座==============================================           
        if ($gameSwitches.value(42) == true){//条件变量  
//          this.drawIcon( 3, x + 350, y, 60, 'right');//图标显示  
                     this.changeTextColor('rgba(0,255,0,255)');                    
          this.drawText("机械王座:", x + 800, y +130, 100, 'right');//文字显示  
                     this.changeTextColor('rgba(255,0,0,255)');                            
          this.drawText( + $gameVariables.value(55)+"%净化率", x + 850, y +130, 200, 'right');        //变量显示  
          } else{  
                     this.changeTextColor('rgba(0,255,0,255)');          
          this.drawText("机械王座:",  x + 800, y +130, 100, 'right');                    
        //  this.drawText("之塔:",  x + 680, y -20, 100, 'right');  
                     this.changeTextColor('rgba(255,0,0,255)');                    
          this.drawText("关闭",  x  + 850, y +130, 100, 'right');                  
        };  
//=============================================================================  
 
  |   
 
 
 
 |